22 lines
604 B
TypeScript
22 lines
604 B
TypeScript
import React from "react";
|
|
|
|
interface CancelButtonProps {
|
|
callBackFunction: () => void;
|
|
text?: string;
|
|
}
|
|
|
|
export default function CancelButton(
|
|
{
|
|
callBackFunction,
|
|
text = "Annuler"
|
|
}: CancelButtonProps) {
|
|
return (
|
|
<button
|
|
onClick={callBackFunction}
|
|
className="px-5 py-2.5 rounded-lg bg-secondary/50 text-text-primary border border-secondary/50 hover:bg-secondary hover:border-secondary hover:shadow-md transition-all duration-200 hover:scale-105 font-medium"
|
|
>
|
|
{text}
|
|
</button>
|
|
);
|
|
}
|