audit.tsx41 lines · main
| 1 | import { |
| 2 | PageHeader, |
| 3 | PageHeaderDescription, |
| 4 | PageHeaderMeta, |
| 5 | PageHeaderSummary, |
| 6 | PageHeaderTitle, |
| 7 | } from 'ui-patterns/PageHeader' |
| 8 | |
| 9 | import { AuditLogs } from '@/components/interfaces/Account/AuditLogs' |
| 10 | import AccountLayout from '@/components/layouts/AccountLayout/AccountLayout' |
| 11 | import { AppLayout } from '@/components/layouts/AppLayout/AppLayout' |
| 12 | import { DefaultLayout } from '@/components/layouts/DefaultLayout' |
| 13 | import type { NextPageWithLayout } from '@/types' |
| 14 | |
| 15 | const Audit: NextPageWithLayout = () => { |
| 16 | return ( |
| 17 | <> |
| 18 | <PageHeader size="default"> |
| 19 | <PageHeaderMeta> |
| 20 | <PageHeaderSummary> |
| 21 | <PageHeaderTitle>Audit Logs</PageHeaderTitle> |
| 22 | <PageHeaderDescription> |
| 23 | View a detailed history of account activities and security events. |
| 24 | </PageHeaderDescription> |
| 25 | </PageHeaderSummary> |
| 26 | </PageHeaderMeta> |
| 27 | </PageHeader> |
| 28 | <AuditLogs /> |
| 29 | </> |
| 30 | ) |
| 31 | } |
| 32 | |
| 33 | Audit.getLayout = (page) => ( |
| 34 | <AppLayout> |
| 35 | <DefaultLayout headerTitle="Account"> |
| 36 | <AccountLayout title="Audit Logs">{page}</AccountLayout> |
| 37 | </DefaultLayout> |
| 38 | </AppLayout> |
| 39 | ) |
| 40 | |
| 41 | export default Audit |