feat: Extensive refactoring and modification to support any number of interfaces

This commit is contained in:
Gabe
2025-09-24 23:24:00 +08:00
parent 779c9fc850
commit 2a46939aa5
65 changed files with 2054 additions and 1947 deletions

View File

@@ -1,11 +1,13 @@
import { STOKEY_FAB } from "../config";
import { useStorage } from "./Storage";
const DEFAULT_FAB = {};
/**
* fab hook
* @returns
*/
export function useFab() {
const { data, update } = useStorage(STOKEY_FAB);
const { data, update } = useStorage(STOKEY_FAB, DEFAULT_FAB);
return { fab: data, updateFab: update };
}