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

17 lines
409 B
TypeScript
Raw Normal View History

2024-06-29 19:39:25 +00:00
import { Button, ButtonProps } from "@/ui";
import { t } from "i18next";
2024-06-29 19:39:25 +00:00
export interface CancelButtonProps extends ButtonProps {
label?: string;
}
export const CancelButton = ({ label = t("common.cancel"), ...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";