mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 22:29:01 +02:00
7abafb01ea
Upgrade to React 18 GitOrigin-RevId: 9b81936e6eea2bccd97fe5c2c5841f0b946371b8
15 lines
423 B
TypeScript
15 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>
|
|
)
|
|
}
|