2025-08-06 18:01:26 +03:00
|
|
|
interface ActionButtonProps {
|
|
|
|
|
text: string;
|
|
|
|
|
icon: string;
|
2025-08-23 10:47:46 +03:00
|
|
|
className?: string;
|
2025-08-23 19:48:01 +03:00
|
|
|
onClick?: (e: MouseEvent) => void;
|
2025-08-06 18:01:26 +03:00
|
|
|
}
|
|
|
|
|
|
2025-08-23 10:47:46 +03:00
|
|
|
export default function ActionButton({ text, icon, className, onClick }: ActionButtonProps) {
|
2025-08-06 18:01:26 +03:00
|
|
|
return <button
|
2025-08-23 10:47:46 +03:00
|
|
|
class={`icon-action ${icon} ${className ?? ""}`}
|
2025-08-06 18:01:26 +03:00
|
|
|
title={text}
|
2025-08-23 10:47:46 +03:00
|
|
|
onClick={onClick}
|
2025-08-06 18:01:26 +03:00
|
|
|
/>;
|
|
|
|
|
}
|