import { Fragment, useCallback } from 'react' import type { ReactNode } from 'react' import { Dialog, DialogPanel, 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} */} {/* TODO: to new Transition */} {children}
) } export default DialogWrapper