feat: add custom nodes selectors

This commit is contained in:
BennyKok
2024-01-11 21:27:56 +08:00
parent 94fa92ed76
commit 6e3b7f0435
8 changed files with 200 additions and 68 deletions
+9
View File
@@ -0,0 +1,9 @@
"use client";
export default async function fetcher<JSON = unknown>(
input: RequestInfo,
init?: RequestInit
): Promise<JSON> {
const res = await fetch(input, init);
return res.json();
}