The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { CommandMenuComponentInstanceContext } from '@/command-menu/states/contexts/CommandMenuComponentInstanceContext';
import { type PositionType } from '@/command-menu-item/types/PositionType';
import { createAtomComponentState } from '@/ui/utilities/state/jotai/utils/createAtomComponentState';
export const commandMenuDropdownPositionComponentState =
createAtomComponentState<PositionType>({
key: 'commandMenuDropdownPositionComponentState',
defaultValue: {
x: null,
y: null,
},
componentInstanceContext: CommandMenuComponentInstanceContext,
});