Add components for Act management and integrate Electron setup
This commit is contained in:
21
components/form/CancelButton.tsx
Normal file
21
components/form/CancelButton.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user