export default function CreateButton({ onClick, title }){
    return (
        
        <button onClick={ onClick } className="bg-gradient-to-r from-4 to-purp hover:opacity-80 transition duration-600 font-[Vazirmatn] text-white rounded-lg w-fit h-full py-2 px-6 flex items-center justify-center">
            <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="1.5" stroke="currentColor" className="w-6 h-6">
                <path strokeLinecap="round" strokeLinejoin="round" d="M12 6v12m6-6H6" />
            </svg>
            <span className="pr-4 leading-none">{ title }</span>
        </button>
    )
}