mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-29 05:00:06 +02:00
14 lines
423 B
TypeScript
14 lines
423 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}>
|
|
<NestableDropdownContextProvider id={id}>
|
|
{children}
|
|
</NestableDropdownContextProvider>
|
|
</div>
|
|
)
|
|
}
|