import { ComponentProps, Ref, ReactNode } from "react"; import classNames from "classnames"; import { ThemeColor, Text, useC } from "../common"; import { ButtonRow } from "../button"; import "./DialogContainer.css"; interface DialogContainerProps { className?: string; title: Text; titleColor?: ThemeColor; titleClassName?: string; titleRef?: Ref; bodyContainerClassName?: string; bodyContainerRef?: Ref; buttons: ComponentProps["buttons"]; buttonsClassName?: string; buttonsContainerRef?: ComponentProps["containerRef"]; children: ReactNode; } export default function DialogContainer({ className, title, titleColor, titleClassName, titleRef, bodyContainerClassName, bodyContainerRef, buttons, buttonsClassName, buttonsContainerRef, children, }: DialogContainerProps) { const c = useC(); return (
{c(title)}

{children}

); }