cleaning up

This commit is contained in:
KS Jannette
2026-02-11 18:20:03 -05:00
parent 04cab5e080
commit eb7da056a6
10 changed files with 33 additions and 28 deletions

View File

@@ -1,14 +1,15 @@
type ClusterButtonProps = {
type ButtonProps = {
onClick: () => void;
isLoading: boolean;
label: string;
};
const ClusterButton = ({ onClick, isLoading }: ClusterButtonProps) => {
const Button = ({ onClick, isLoading, label }: ButtonProps) => {
return (
<button onClick={onClick} disabled={isLoading}>
{isLoading ? 'Clustering...' : 'Run Clustering'}
{isLoading ? 'Working...' : label}
</button>
);
};
export default ClusterButton;
export default Button;