mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 16:19:10 +03:00
64 lines
1.6 KiB
TypeScript
64 lines
1.6 KiB
TypeScript
import React from 'react'
|
|
import BaseLayout from 'components/layouts'
|
|
import { observer } from 'mobx-react-lite'
|
|
import { withAuth } from 'hooks'
|
|
import { Badge, IconList } from '@supabase/ui'
|
|
import LogsNavigation from 'components/interfaces/Settings/Logs/LogsNavigation'
|
|
|
|
const PageLayout = ({ subtitle, children }: { subtitle?: React.ReactNode; children?: React.ReactNode }) => {
|
|
return (
|
|
<BaseLayout>
|
|
<div className="h-full flex flex-col flex-grow">
|
|
<div
|
|
className="
|
|
pt-10
|
|
pb-2
|
|
w-full mx-auto
|
|
|
|
transition-all
|
|
|
|
px-5
|
|
lg:px-20
|
|
xl:px-24
|
|
1xl:px-28
|
|
2xl:px-32
|
|
|
|
flex flex-col
|
|
gap-8
|
|
"
|
|
>
|
|
<div className="flex items-center gap-3">
|
|
<div
|
|
className="w-6 h-6 bg-brand-300 border border-brand-600 rounded text-brand-900
|
|
flex items-center justify-center
|
|
"
|
|
>
|
|
<IconList size={14} strokeWidth={3} />
|
|
</div>
|
|
<h1 className="text-2xl text-scale-1200">Logs Explorer</h1>
|
|
{subtitle && <Badge color="scale">{subtitle}</Badge>}
|
|
</div>
|
|
<LogsNavigation />
|
|
</div>
|
|
<div
|
|
// weird repetitive styling
|
|
className="
|
|
h-full flex flex-col flex-grow
|
|
w-full mx-auto
|
|
transition-all
|
|
px-5
|
|
lg:px-20
|
|
xl:px-24
|
|
1xl:px-28
|
|
2xl:px-32
|
|
"
|
|
>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
</BaseLayout>
|
|
)
|
|
}
|
|
|
|
export default withAuth(observer(PageLayout))
|