import type { FC, ReactNode } from 'react' import { ChevronLeftIcon, XMarkIcon } from '@heroicons/react/24/outline' import classNames from 'classnames' import { Typography } from '..' import { IconButton } from '../iconbutton' export interface DialogHeaderProps { title: string | ReactNode onClose?: () => void onBack?: () => void className?: string border?: boolean children?: ReactNode | Array } const DialogHeader: FC = ({ title, onBack, onClose, border = true, className, children }) => { return (
{onBack ? ( ) :
} {title}
{children || (onClose ? ( ) : )}
) } export default DialogHeader