Presupuestador_web/client/src/components/Buttons/CancelButton.tsx

16 lines
372 B
TypeScript
Raw Normal View History

2024-06-29 19:39:25 +00:00
import { Button, ButtonProps } from "@/ui";
export interface CancelButtonProps extends ButtonProps {
label?: string;
}
2024-07-03 15:15:52 +00:00
export const CancelButton = ({ label = "Cancelar", ...props }: CancelButtonProps): JSX.Element => {
2024-06-29 19:39:25 +00:00
return (
2024-07-03 15:15:52 +00:00
<Button type='button' variant='secondary' {...props}>
2024-06-29 19:39:25 +00:00
{label}
</Button>
);
};
CancelButton.displayName = "CancelButton";