Files
Joshen Lim eeaf7e3c38 Minor clean ups (#37653)
* Minor clean ups

* Clean up

* Standardize more icon for table and storage editor

* update copy
2025-08-05 14:26:20 +07:00

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