major: import Fresh 2.0 code (#2449)

🎉
This commit is contained in:
Marvin Hagemeister
2024-05-24 09:40:08 +02:00
committed by GitHub
parent 990357629e
commit 287929e4d2
958 changed files with 15794 additions and 28287 deletions
+6 -15
View File
@@ -1,4 +1,3 @@
import { Head } from "$fresh/runtime.ts";
import { useEffect, useRef } from "preact/hooks";
import docsearch from "https://esm.sh/@docsearch/js@3.5.2?target=es2020";
@@ -25,19 +24,11 @@ export default function SearchButton(
}
}, [ref.current]);
return (
<>
<Head>
<link
rel="stylesheet"
href="/docsearch.css"
/>
</Head>
<div
title="Search Button"
class={"h-9 mb-6 " + (props.class ?? "")}
ref={ref}
>
</div>
</>
<div
title="Search Button"
class={"h-9 mb-6 " + (props.class ?? "")}
ref={ref}
>
</div>
);
}