Skip to content

Commit f2f7ddb

Browse files
feat(ManagerDashboard): add new component for manager dashboard with breadcrumbs and layout
1 parent f75ab35 commit f2f7ddb

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import AppLayout from '@/layouts/app-layout';
2+
import { dashboard } from '@/routes';
3+
import { BreadcrumbItem } from '@/types';
4+
import { EmployeeInfo } from '@/types/application/employee';
5+
import { Head } from '@inertiajs/react';
6+
7+
interface ManagerDashboardProps {
8+
data: {
9+
managerInfo: EmployeeInfo;
10+
[key: string]: unknown;
11+
};
12+
}
13+
14+
const breadcrumbs: BreadcrumbItem[] = [
15+
{
16+
title: 'Dashboard',
17+
href: dashboard().url,
18+
},
19+
];
20+
21+
export default function ManagerDashboard({ data }: Readonly<ManagerDashboardProps>) {
22+
console.group('Manager Info');
23+
console.log(data);
24+
console.groupEnd();
25+
26+
return (
27+
<AppLayout breadcrumbs={breadcrumbs}>
28+
<Head title="Manager Dashboard" />
29+
</AppLayout>
30+
);
31+
}

0 commit comments

Comments
 (0)