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


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

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

export default HeaderModal