turkmentv_front/components/advert/ButtonSecondary.tsx

20 lines
505 B
TypeScript
Raw Normal View History

2024-08-19 12:44:56 +00:00
import { ButtonHTMLAttributes } from 'react';
interface IProps {
onClick: () => void;
name: string;
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
}
const ButtonSecondary = ({ name, onClick, type = 'button' }: IProps) => {
return (
<button
type={type}
onClick={onClick}
className="text-center text-white text-xs font-bold font-roboto p-3 w-[150px] rounded-[4px] border border-solid border-white">
{name}
</button>
);
};
export default ButtonSecondary;