mirror of
https://github.com/supabase/supabase.git
synced 2026-07-06 22:34:54 +08:00
* init * update import names * Update resizable.tsx * resizable bg now goes lighter on drag * only resizable for table editor and sql editor * Update ProjectLayout.tsx * Update index.tsx * Remove unneeded console.log. --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
28 lines
665 B
TypeScript
28 lines
665 B
TypeScript
import { PropsWithChildren } from 'react'
|
|
|
|
interface ProductMenuBarProps {
|
|
title: string
|
|
}
|
|
|
|
const ProductMenuBar = ({ title, children }: PropsWithChildren<ProductMenuBarProps>) => {
|
|
return (
|
|
<div
|
|
className={[
|
|
'hide-scrollbar flex flex-col w-full h-full', // Layout
|
|
'bg-studio',
|
|
'border-default ',
|
|
].join(' ')}
|
|
>
|
|
<div
|
|
className="border-default 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">{children}</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ProductMenuBar
|