feat: implementation
This commit is contained in:
13
components/Button.tsx
Normal file
13
components/Button.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
interface ButtonProps {
|
||||
label: string;
|
||||
disabled?: boolean;
|
||||
onClick: () => void;
|
||||
}
|
||||
|
||||
export function Button({ onClick, disabled = false, label }: ButtonProps) {
|
||||
return (
|
||||
<button onClick={onClick} disabled={disabled} className='button'>
|
||||
{label}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user