mm
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import type { CommonProps } from "../../utils/CommonProps"
|
||||
import { PopoverContext } from "./use-popover-context"
|
||||
import { usePopoverFloating } from "./use-popover-floating"
|
||||
|
||||
export type PopoverProps = CommonProps & {
|
||||
|
||||
}
|
||||
|
||||
export const Popover = (props: PopoverProps) => {
|
||||
const { children } = props
|
||||
const popoverFloatingContext = usePopoverFloating()
|
||||
|
||||
return <PopoverContext.Provider value={popoverFloatingContext}>
|
||||
<div>{children}</div>
|
||||
</PopoverContext.Provider>
|
||||
}
|
||||
Reference in New Issue
Block a user