@ariakit/react-core
Version:
Ariakit React core
29 lines (26 loc) • 688 B
JavaScript
"use client";
import {
useDialogStoreProps
} from "./Y2U4BRIM.js";
import {
useStore,
useStoreProps
} from "./RTNCFSKZ.js";
import {
useUpdateEffect
} from "./5GGHRIN3.js";
// src/popover/popover-store.ts
import * as Core from "@ariakit/core/popover/popover-store";
function usePopoverStoreProps(store, update, props) {
useUpdateEffect(update, [props.popover]);
useStoreProps(store, props, "placement");
return useDialogStoreProps(store, update, props);
}
function usePopoverStore(props = {}) {
const [store, update] = useStore(Core.createPopoverStore, props);
return usePopoverStoreProps(store, update, props);
}
export {
usePopoverStoreProps,
usePopoverStore
};