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