interstellar_ai/app/components/settings/ButtonSettings.tsx
2024-10-07 09:09:15 +02:00

22 lines
677 B
TypeScript

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
}
const ButtonSetting: React.FC<ButtonSettingProps> = ({ label, onClick }) => {
return (
<div className="settings-option">
<button
onClick={onClick} // Call the onClick function when the button is clicked
className={"export-button"} // Apply any additional classes
>
{label} {/* Display the label on the button */}
</button>
</div>
);
};
export default ButtonSetting;