mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 18:35:07 +03:00
30 lines
759 B
TypeScript
30 lines
759 B
TypeScript
import { PropsWithChildren } from 'react'
|
|
|
|
interface ProductMenuBarProps {
|
|
title: string
|
|
}
|
|
|
|
const ProductMenuBar = ({ title, children }: PropsWithChildren<ProductMenuBarProps>) => {
|
|
return (
|
|
<div
|
|
className={[
|
|
'hide-scrollbar flex w-64 flex-col border-r', // Layout
|
|
'bg-scale-200', // Light mode
|
|
'dark:border-dark ', // Dark mode
|
|
].join(' ')}
|
|
>
|
|
<div
|
|
className="dark:border-dark flex max-h-12 items-center border-b px-6"
|
|
style={{ minHeight: '3rem' }}
|
|
>
|
|
<h4 className="text-lg">{title}</h4>
|
|
</div>
|
|
<div className="flex-grow overflow-y-auto" style={{ maxHeight: 'calc(100vh - 96px)' }}>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ProductMenuBar
|