import { Description, Dialog, DialogPanel, DialogTitle, Transition, TransitionChild } from '@headlessui/react'; import type { ReactElement } from 'react'; import React from 'react'; import type { Button } from './Button'; import type Text from './Text/Text'; /** * Props for the PromptDialog component. */ export interface PromptDialogProps { isOpen: boolean; onClose: () => void; title: ReactElement; content: ReactElement; children?: ReactElement[]; } /** * A reusable dialog component that can be used to display a prompt to the user. * @param {PromptDialogProps} props.isOpen - Whether the dialog is open or not. * @param {Function} props.onClose - A function to call when the user exits the dialog. * @param {React.ReactElement} props.title - The title of the dialog. * @param {React.ReactElement} props.content - The content of the dialog. * @param {React.ReactElement[]} props.children - The buttons to display in the dialog. */ function PromptDialog({ isOpen, onClose, title, content, children }: PromptDialogProps) { return ( ); } export default PromptDialog;