function ToggleButtonRemastered({ isEnabled, children }) {
return (
<button
className={clsx(
isEnabled && "scale-110",
"transition-transform duration-200 w-max text-xl"
)}
>
{children}
</button>
)
}
和
function ToggleButtonClassicEdition({ isEnabled, children }) {
return (
<button
data-enabled={isEnabled}
className="data-[enabled=truel:scale-110 transition-transform duration-200 w-max text-xl"
>
{children}
</button>
)
}
|