"use client"; /* * Documentation: * Button — https://app.subframe.com/f023064a5ca0/library?component=Button_3b777358-b86b-40af-9327-891efc6826fe * Confirm Dialog — https://app.subframe.com/f023064a5ca0/library?component=Confirm+Dialog_7826382f-0b13-45d9-ac8f-238fa6de9121 */ import React from "react"; import { FeatherAlertTriangle } from "@subframe/core"; import * as SubframeUtils from "../../utils"; import { Button } from "../Button"; export interface ConfirmDialogRootProps extends Omit, "title"> { state?: "open" | "processing" | "closed"; title?: React.ReactNode; description?: React.ReactNode; confirmLabel?: React.ReactNode; cancelLabel?: React.ReactNode; className?: string; } const ConfirmDialogRoot = React.forwardRef< HTMLDivElement, ConfirmDialogRootProps >(function ConfirmDialogRoot( { state = "open", title, description, confirmLabel, cancelLabel, className, ...otherProps }: ConfirmDialogRootProps, ref ) { return (
{title ? ( {title} ) : null} {description ? ( {description} ) : null}
); }); export const ConfirmDialog = ConfirmDialogRoot;