musikspider/components/Button.tsx

12 lines
251 B
TypeScript
Raw Normal View History

2023-04-12 07:34:23 +03:00
import { JSX } from "preact";
import { IS_BROWSER } from "$fresh/runtime.ts";
export function Button(props: JSX.HTMLAttributes<HTMLButtonElement>) {
return (
<button
{...props}
disabled={!IS_BROWSER || props.disabled}
/>
);
}