replication-logs.tsx28 lines · main
1import { useParams } from 'common'
2
3import { LogsTableName } from '@/components/interfaces/Settings/Logs/Logs.constants'
4import { LogsPreviewer } from '@/components/interfaces/Settings/Logs/LogsPreviewer'
5import DefaultLayout from '@/components/layouts/DefaultLayout'
6import LogsLayout from '@/components/layouts/LogsLayout/LogsLayout'
7import type { NextPageWithLayout } from '@/types'
8
9export 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
22LogPage.getLayout = (page) => (
23 <DefaultLayout>
24 <LogsLayout title="Replication Logs">{page}</LogsLayout>
25 </DefaultLayout>
26)
27
28export default LogPage