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

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

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