"use client"; /* * Documentation: * Dialog — https://app.subframe.com/f023064a5ca0/library?component=Dialog_ca59db17-43fb-4247-8094-3c55162e902d */ import React from "react"; import * as SubframeCore from "@subframe/core"; import * as SubframeUtils from "../../utils"; export interface ContentProps extends React.ComponentProps { children?: React.ReactNode; size?: "xs" | "small" | "medium" | "large" | "media"; padding?: "default" | "spacious"; hideCloseIcon?: boolean; className?: string; } const Content = React.forwardRef(function Content( { children, size = "small", padding = "default", hideCloseIcon = false, className, ...otherProps }: ContentProps, ref ) { return children ? (
{children}
) : null; }); export interface DialogRootProps extends React.ComponentProps { children?: React.ReactNode; open?: boolean; onOpenChange?: (open: boolean) => void; className?: string; } const DialogRoot = React.forwardRef( function DialogRoot( { children, className, ...otherProps }: DialogRootProps, ref ) { return children ? (
{children}
) : null; } ); export const Dialog = Object.assign(DialogRoot, { Content, });