refactor(ark): add note provider

This commit is contained in:
2023-12-27 10:52:13 +07:00
parent 3956ed622d
commit b4dac2d477
38 changed files with 793 additions and 1140 deletions

View File

@@ -5,5 +5,4 @@ export * from "./src/nip94";
export * from "./src/notification";
export * from "./src/hooks/useNetworkStatus";
export * from "./src/hooks/useOpenGraph";
export * from "../ark/src/hooks/useRelay";
export * from "../ark/src/hooks/useSuggestion";
export * from "./src/cn";

View File

@@ -11,9 +11,11 @@
"@tanstack/react-query": "^5.14.2",
"@tauri-apps/api": "2.0.0-alpha.11",
"@tauri-apps/plugin-notification": "2.0.0-alpha.3",
"clsx": "^2.0.0",
"dayjs": "^1.11.10",
"nostr-tools": "1.17.0",
"react": "^18.2.0"
"react": "^18.2.0",
"tailwind-merge": "^1.14.0"
},
"devDependencies": {
"@lume/tsconfig": "workspace:^",

6
packages/utils/src/cn.ts Normal file
View File

@@ -0,0 +1,6 @@
import { ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}