"use client"; /* * Documentation: * Dialog — https://app.subframe.com/f023064a5ca0/library?component=Dialog_ecae5971-a047-4e67-9edd-3d361c1deef2 */ import React from "react"; import * as SubframeCore from "@subframe/core"; import * as SubframeUtils from "../../utils"; export interface ContentProps extends React.ComponentProps { children?: React.ReactNode; className?: string; } const Content = React.forwardRef(function Content( { children, 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, });