import { CallDeskPage } from "@/pages/call-desk";
import { LeadWorkspacePage } from "@/pages/lead-workspace";
import { TeamDashboardPage } from "@/pages/team-dashboard";
import { useAuth } from "@/providers/auth-provider";

export const RoleRouter = () => {
    const { user } = useAuth();

    switch (user.role) {
        case "admin":
            return <TeamDashboardPage />;
        case "cc-agent":
            return <CallDeskPage />;
        default:
            return <LeadWorkspacePage />;
    }
};
