menu-bar.tsx 438 B

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