refactor widget

This commit is contained in:
Ren Amamiya
2023-08-30 16:21:42 +07:00
parent abe4d11498
commit aced6077bd
27 changed files with 544 additions and 246 deletions

10
src/utils/types.d.ts vendored
View File

@@ -36,6 +36,16 @@ export interface Profile extends NDKUserProfile {
pubkey?: string;
}
export interface WidgetGroup {
title: string;
data: WidgetGroupItem[];
}
export interface WidgetGroupItem {
title: string;
kind: number;
}
export interface Widget {
id?: string;
account_id?: number;