aboutsummaryrefslogtreecommitdiff
path: root/components/Button.tsx
blob: 0d10b4b6d29cd3c46e8b1c27cc168892a048fa95 (plain)
1
2
3
4
5
6
7
8
9
10
11
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}
    />
  );
}