import { Fragment, useCallback } from 'react' import type { ReactNode } from 'react' import { Dialog, Transition } from '@headlessui/react' import cn from '@/utils/classnames' type DialogProps = { className?: string children: ReactNode show: boolean onClose?: () => void inWorkflow?: boolean } const DialogWrapper = ({ className, children, show, onClose, inWorkflow = true, }: DialogProps) => { const close = useCallback(() => onClose?.(), [onClose]) return (
{children}
) } export default DialogWrapper