diff --git a/packages/react/components/Dialog.tsx b/packages/react/components/Dialog.tsx index dde96c6..b12764f 100644 --- a/packages/react/components/Dialog.tsx +++ b/packages/react/components/Dialog.tsx @@ -217,13 +217,11 @@ const DialogContent = React.forwardRef( * ========================= */ -interface DialogCloseProps { - children: T extends any[] ? never : T; +interface DialogCloseProps { + children: Exclude>; } -const DialogClose = ({ - children, -}: DialogCloseProps) => { +const DialogClose = ({ children }: DialogCloseProps) => { const [_, setState] = useDialogContext(); // const onClick = () => setState((p) => ({ ...p, opened: false }));