replication-logs.tsx28 lines · main
| 1 | import { useParams } from 'common' |
| 2 | |
| 3 | import { LogsTableName } from '@/components/interfaces/Settings/Logs/Logs.constants' |
| 4 | import { LogsPreviewer } from '@/components/interfaces/Settings/Logs/LogsPreviewer' |
| 5 | import DefaultLayout from '@/components/layouts/DefaultLayout' |
| 6 | import LogsLayout from '@/components/layouts/LogsLayout/LogsLayout' |
| 7 | import type { NextPageWithLayout } from '@/types' |
| 8 | |
| 9 | export const LogPage: NextPageWithLayout = () => { |
| 10 | const { ref } = useParams() |
| 11 | |
| 12 | return ( |
| 13 | <LogsPreviewer |
| 14 | condensedLayout |
| 15 | queryType="etl" |
| 16 | projectRef={ref!} |
| 17 | tableName={LogsTableName.ETL} |
| 18 | /> |
| 19 | ) |
| 20 | } |
| 21 | |
| 22 | LogPage.getLayout = (page) => ( |
| 23 | <DefaultLayout> |
| 24 | <LogsLayout title="Replication Logs">{page}</LogsLayout> |
| 25 | </DefaultLayout> |
| 26 | ) |
| 27 | |
| 28 | export default LogPage |