...
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-10-25 08:52:23 +08:00
parent e6d6096636
commit 0900ac26f7
9 changed files with 607 additions and 29 deletions

View File

@@ -1,21 +1,20 @@
export default function Button({
label,
onClick,
className = '',
selected = false
className,
selected,
children
}: {
label:
string,
onClick?: () => void,
className?: string,
selected?: boolean
selected?: boolean,
children?: React.ReactNode
}) {
return (
<button
onClick={onClick}
className={`px-2 py-1 rounded shadow-2xs font-bold hover:bg-gray-300 hover:cursor-pointer ${selected ? 'bg-gray-300' : "bg-white"} ${className}`}
>
{label}
{children}
</button>
);
}