[web] Tear down old editor toolbar GitOrigin-RevId: 8ba74abcc56e7bd476a9d6cae72f38486168c2ed
15 lines
438 B
TypeScript
15 lines
438 B
TypeScript
import { NestableDropdownContextProvider } from '@/shared/context/nestable-dropdown-context'
|
|
import { FC, HTMLProps } from 'react'
|
|
|
|
export const MenuBar: FC<
|
|
React.PropsWithChildren<HTMLProps<HTMLDivElement> & { id: string }>
|
|
> = ({ children, id, ...props }) => {
|
|
return (
|
|
<div {...props} role="menubar">
|
|
<NestableDropdownContextProvider id={id}>
|
|
{children}
|
|
</NestableDropdownContextProvider>
|
|
</div>
|
|
)
|
|
}
|