Add components for Act management and integrate Electron setup
This commit is contained in:
20
components/form/AddActionButton.tsx
Normal file
20
components/form/AddActionButton.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||
import {faPlus} from "@fortawesome/free-solid-svg-icons";
|
||||
import React from "react";
|
||||
|
||||
interface AddActionButtonProps {
|
||||
callBackAction: () => Promise<void>;
|
||||
}
|
||||
|
||||
export default function AddActionButton(
|
||||
{
|
||||
callBackAction
|
||||
}: AddActionButtonProps) {
|
||||
return (
|
||||
<button
|
||||
className={`group p-2 rounded-lg text-muted hover:text-primary hover:bg-primary/10 transition-colors`}
|
||||
onClick={callBackAction}>
|
||||
<FontAwesomeIcon icon={faPlus} className={'w-5 h-5 transition-transform group-hover:rotate-90'}/>
|
||||
</button>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user