mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
* Minor clean ups * Clean up * Standardize more icon for table and storage editor * update copy
33 lines
852 B
TypeScript
33 lines
852 B
TypeScript
import { PropsWithChildren } from 'react'
|
|
import { cn } from 'ui'
|
|
|
|
interface ProductMenuBarProps {
|
|
title: string
|
|
className?: string
|
|
}
|
|
|
|
const ProductMenuBar = ({ title, children, className }: PropsWithChildren<ProductMenuBarProps>) => {
|
|
return (
|
|
<div
|
|
/**
|
|
* id used in playwright-tests/tests/snapshot/spec/table-editor.spec.ts
|
|
* */
|
|
id="spec-click-target"
|
|
className={cn(
|
|
'flex flex-col w-full h-full', // Layout
|
|
'hide-scrollbar bg-dash-sidebar border-default'
|
|
)}
|
|
>
|
|
<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={cn('flex-grow overflow-y-auto', className)}>{children}</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ProductMenuBar
|