import { CloseCircle } from 'iconsax-react'
import { FC } from 'react'


type Props = {
    label: string,
    close: () => void,
}

const HeaderModal: FC<Props> = (props: Props) => {
    return (
        <div className='flex justify-between items-center border-b border-border pb-4'>
            <div className='text-sm'>{props.label}</div>
            <div className='size-7 rounded-full  flex justify-center items-center'>
                <CloseCircle size={20} color='black' onClick={props.close} />
            </div>
        </div>
    )
}

export default HeaderModal