import { Dialog as DialogPrimitive } from "@kobalte/core"; import { type DialogOverlayProps } from "@kobalte/core/dialog"; import { X } from "lucide-solid"; import { Component, JSX, ParentComponent } from "solid-js"; import { cn } from "./utils"; const Dialog = DialogPrimitive.Root; const DialogTrigger = DialogPrimitive.Trigger; const DialogPortal = DialogPrimitive.Portal; const DialogClose = DialogPrimitive.CloseButton; const DialogOverlay: ParentComponent = (props) => ( ); // @ts-ignore const DialogContent: ParentComponent = ( props, ) => ( {props.children} Close ); const DialogHeader: Component> = (props) => (
); const DialogFooter: ParentComponent> = ( props, ) => (
); // @ts-ignore const DialogTitle: ParentComponent = ( props, ) => ( ); const DialogDescription: ParentComponent< // @ts-ignore DialogPrimitive.DialogDescriptionCommonProps > = (props) => ( ); export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };