Files
supabase/apps/studio/components/layouts/ProjectLayout/ProductMenuBar.tsx
Jonathan Summers-Muir e1bbdd0ca7 feat: add resizable inner sidebar (#21548)
* 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>
2024-02-26 18:50:44 +08:00

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