diff --git a/packages/react/components/Dialog.tsx b/packages/react/components/Dialog.tsx index f4eda16..dde96c6 100644 --- a/packages/react/components/Dialog.tsx +++ b/packages/react/components/Dialog.tsx @@ -56,13 +56,11 @@ const DialogRoot = ({ children }: DialogRootProps) => { * ========================= */ -interface DialogTriggerProps { - children: T extends any[] ? never : T; +interface DialogTriggerProps { + children: Exclude>; } -const DialogTrigger = ({ - children, -}: DialogTriggerProps) => { +const DialogTrigger = ({ children }: DialogTriggerProps) => { const [_, setState] = useDialogContext(); // const onClick = () => setState((p) => ({ ...p, opened: true }));