= ({
getLogSplittingButtonText,
getRoundSplittingButtonText,
}) => {
+ const [clickedButton, setClickedButton] = useState
(null);
+
+ const handleButtonClick = (action: () => void, buttonType: string) => {
+ action();
+ setClickedButton(buttonType);
+ setTimeout(() => setClickedButton(null), 300);
+ };
+
return (
@@ -49,8 +57,8 @@ export const ProcessingSection: React.FC
= ({