You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
579 B

import React from "react";
import { Link } from "react-router-dom";
const Button = (
{
onClick,
title,
borderType,
to,
type
}
) => {
return (
<Link
to={to ? to : ''}
className={`Login-box-form-btn w-full h-12 ${borderType ? borderType : 'rounded-lg'} border border-solid border-red52 ${type == 'outlined' ? 'text-red52' : 'text-white bg-red52'} flex items-center justify-center mt-4`}
onClick={onClick}
>
{title}
</Link>
);
};
export default Button;