import Preact from "preact"; import { useState } from "preact/hooks" import { IS_BROWSER } from "$fresh/runtime.ts"; export default function CopyButton(props: { textBefore: string, textAfter: string } & Preact.PropsWithChildren) { const [clicked, setClicked] = useState(false); const startReset = () => { setTimeout(() => { setClicked(false); }, 2_000); } return ( ); }