refactor(ui): refactor emails state using zustand store

This commit is contained in:
Fu Diwei
2024-12-11 16:42:23 +08:00
parent 83ba3d4450
commit b744363736
21 changed files with 141 additions and 166 deletions

View File

@@ -1,10 +1,11 @@
export type Setting<T> = {
id?: string;
name?: string;
content?: T;
};
import { type BaseModel } from "pocketbase";
export type EmailsSetting = {
export interface Settings<T> extends BaseModel {
name: string;
content: T;
}
export type EmailsSettingsContent = {
emails: string[];
};