mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
14 lines
382 B
TypeScript
14 lines
382 B
TypeScript
import type { CredentialApplication } from "@versia/client/schemas";
|
|
import { StorageSerializers } from "@vueuse/core";
|
|
import type { z } from "zod";
|
|
|
|
export const useAppData = () => {
|
|
return useLocalStorage<z.infer<typeof CredentialApplication> | null>(
|
|
"versia:app_data",
|
|
null,
|
|
{
|
|
serializer: StorageSerializers.object,
|
|
},
|
|
);
|
|
};
|