27 lines
586 B
TypeScript
27 lines
586 B
TypeScript
import { PageBody, PageHeader } from '@kit/ui/page';
|
|
|
|
import {
|
|
DoctorPageViewAction,
|
|
createDoctorPageViewLog,
|
|
} from '~/lib/services/audit/doctorPageView.service';
|
|
|
|
import DoctorDashboard from './_components/doctor-dashboard';
|
|
import { DoctorGuard } from './_components/doctor-guard';
|
|
|
|
async function DoctorPage() {
|
|
await createDoctorPageViewLog({
|
|
action: DoctorPageViewAction.VIEW_DASHBOARD,
|
|
});
|
|
|
|
return (
|
|
<>
|
|
<PageHeader />
|
|
<PageBody className="px-12">
|
|
<DoctorDashboard />
|
|
</PageBody>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default DoctorGuard(DoctorPage);
|