import type { JSX, ValidComponent } from "solid-js" import { splitProps } from "solid-js" import * as AlertDialogPrimitive from "@kobalte/core/alert-dialog" import type { PolymorphicProps } from "@kobalte/core/polymorphic" import { cn } from "~/styles/utils" const AlertDialog = AlertDialogPrimitive.Root const AlertDialogTrigger = AlertDialogPrimitive.Trigger const AlertDialogPortal = AlertDialogPrimitive.Portal type AlertDialogOverlayProps = AlertDialogPrimitive.AlertDialogOverlayProps & { class?: string | undefined } const AlertDialogOverlay = ( props: PolymorphicProps> ) => { const [local, others] = splitProps(props as AlertDialogOverlayProps, ["class"]) return ( ) } type AlertDialogContentProps = AlertDialogPrimitive.AlertDialogContentProps & { class?: string | undefined children?: JSX.Element } const AlertDialogContent = ( props: PolymorphicProps> ) => { const [local, others] = splitProps(props as AlertDialogContentProps, ["class", "children"]) return ( {local.children} Close ) } type AlertDialogTitleProps = AlertDialogPrimitive.AlertDialogTitleProps & { class?: string | undefined } const AlertDialogTitle = ( props: PolymorphicProps> ) => { const [local, others] = splitProps(props as AlertDialogTitleProps, ["class"]) return } type AlertDialogDescriptionProps = AlertDialogPrimitive.AlertDialogDescriptionProps & { class?: string | undefined } const AlertDialogDescription = ( props: PolymorphicProps> ) => { const [local, others] = splitProps(props as AlertDialogDescriptionProps, ["class"]) return ( ) } export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogTitle, AlertDialogDescription }