拆分解耦

This commit is contained in:
2025-09-18 16:18:12 +08:00
parent dc0ffce3c0
commit 2edd0b05d1
9 changed files with 39 additions and 36 deletions

View File

@@ -0,0 +1,7 @@
export default function Button({ label, onClick }: { label: string, onClick?: () => void }) {
return (
<button onClick={onClick} className="m-1 px-2 py-1 rounded bg-white shadow-2xs font-bold hover:bg-gray-300">
{label}
</button>
);
}