2024-10-01 12:45:21 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
interface ButtonSettingProps {
|
|
|
|
label: string; // The label to display on the button
|
|
|
|
onClick: () => void; // The function to call when the button is clicked
|
|
|
|
className?: string; // Optional additional classes for styling
|
|
|
|
}
|
|
|
|
|
2024-10-07 09:09:15 +02:00
|
|
|
const ButtonSetting: React.FC<ButtonSettingProps> = ({ label, onClick }) => {
|
2024-10-01 12:45:21 +02:00
|
|
|
return (
|
|
|
|
<div className="settings-option">
|
2024-10-07 09:09:15 +02:00
|
|
|
<button
|
2024-10-01 12:45:21 +02:00
|
|
|
onClick={onClick} // Call the onClick function when the button is clicked
|
2024-10-07 09:09:15 +02:00
|
|
|
className={"export-button"} // Apply any additional classes
|
2024-10-01 12:45:21 +02:00
|
|
|
>
|
|
|
|
{label} {/* Display the label on the button */}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ButtonSetting;
|