+
{label && (
setTimeout(resolve, number))
}
+export function getSiteName(url: string): string {
+ return url.replace(/^(https?:\/\/)?(www\.)?/, "").split(".")[0]
+}
+
export function extractAndFormat(url: string): string {
const match = url.match(/\/([^/]+)\.html/)
if (match) {
diff --git a/resources/types/global.d.ts b/resources/types/global.d.ts
index 7c015112..8fd4b4aa 100644
--- a/resources/types/global.d.ts
+++ b/resources/types/global.d.ts
@@ -2,6 +2,8 @@ import "rehype-pretty-code"
declare module "react-syntax-highlighter/dist/esm/styles/prism"
+// declare module "tailwindcss-motion"
+
declare module "rehype-pretty-code" {
interface Options {
theme?: string