import type { FC, ReactNode } from 'react' import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, XMarkIcon } from '@heroicons/react/24/outline' import { classNames, IconButton } from '../index' import { Typography } from '../typography' export interface HeaderProps { title: string | ReactNode onBack?: () => void onClose?: () => void border?: boolean arrowDirection?: 'top' | 'bottom' | 'left' | 'right' className?: string } export const Header: FC = ({ className, title, border = true, onBack, onClose, arrowDirection = 'left' }) => { return (
{onBack ? ( {arrowDirection === 'left' && ( )} {arrowDirection === 'bottom' && ( )} {arrowDirection === 'top' && ( )} {arrowDirection === 'right' && ( )} ) :
} {title} {onClose ? (
) :
}
) }