fix: make it work with new vite
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
import { ButtonHTMLAttributes } from "preact";
|
||||
import { IS_BROWSER } from "fresh/runtime";
|
||||
|
||||
export function Button(props: ButtonHTMLAttributes<HTMLButtonElement>) {
|
||||
return (
|
||||
<button
|
||||
{...props}
|
||||
disabled={!IS_BROWSER || props.disabled}
|
||||
class={`px-2 py-1 ${props.class ? props.class : " "}`}
|
||||
class={`cursor-pointer px-2 py-1 ${props.class ? props.class : ""}`}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user