mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
13 lines
371 B
TypeScript
13 lines
371 B
TypeScript
import type { LysandClient } from "@lysand-org/client";
|
|
import { StorageSerializers } from "@vueuse/core";
|
|
|
|
export type ApplicationData = Awaited<
|
|
ReturnType<LysandClient["createApp"]>
|
|
>["data"];
|
|
|
|
export const useAppData = () => {
|
|
return useLocalStorage<ApplicationData | null>("lysand:app_data", null, {
|
|
serializer: StorageSerializers.object,
|
|
});
|
|
};
|