2023-09-23 19:16:51 +08:00
|
|
|
import { STOKEY_FAB } from "../config";
|
|
|
|
|
import { useStorage } from "./Storage";
|
|
|
|
|
|
2025-09-24 23:24:00 +08:00
|
|
|
const DEFAULT_FAB = {};
|
|
|
|
|
|
2023-09-23 19:16:51 +08:00
|
|
|
/**
|
|
|
|
|
* fab hook
|
|
|
|
|
* @returns
|
|
|
|
|
*/
|
|
|
|
|
export function useFab() {
|
2025-09-24 23:24:00 +08:00
|
|
|
const { data, update } = useStorage(STOKEY_FAB, DEFAULT_FAB);
|
2023-09-23 19:16:51 +08:00
|
|
|
return { fab: data, updateFab: update };
|
|
|
|
|
}
|