menu-bar.tsx 400 B

12345678910111213141516
  1. import { NestableDropdownContextProvider } from '@/shared/context/nestable-dropdown-context'
  2. import { FC, HTMLProps } from 'react'
  3. export const MenuBar: FC<HTMLProps<HTMLDivElement> & { id: string }> = ({
  4. children,
  5. id,
  6. ...props
  7. }) => {
  8. return (
  9. <div {...props}>
  10. <NestableDropdownContextProvider id={id}>
  11. {children}
  12. </NestableDropdownContextProvider>
  13. </div>
  14. )
  15. }