import type { TransitionRootProps } from '@headlessui/react'; import { Description, Dialog as HDialog, DialogPanel, DialogTitle, Transition, TransitionChild, } from '@headlessui/react'; import clsx from 'clsx'; import type { PropsWithChildren } from 'react'; import React, { Fragment } from 'react'; import ExtensionRoot from './ExtensionRoot/ExtensionRoot'; export interface _DialogProps { className?: string; title?: JSX.Element; description?: JSX.Element; } /** * Props for the Dialog component. */ export type DialogProps = _DialogProps & Omit, 'children'>; /** * A reusable popup component that can be used to display content on the page */ export default function Dialog(props: PropsWithChildren): JSX.Element { const { children, className, open, ...rest } = props; return (
{props.title && {props.title}} {props.description && {props.description}} {children}
); }