mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 18:28:15 +00:00
18 lines
510 B
TypeScript
18 lines
510 B
TypeScript
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 />;
|
|
}
|
|
};
|