mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
15 lines
386 B
TypeScript
15 lines
386 B
TypeScript
import type { ExtendedDescription } from "@versia/client/schemas";
|
|
import type { z } from "zod";
|
|
|
|
export const useExtendedDescription = () => {
|
|
const store = useAuthStore();
|
|
|
|
const output = ref(null as z.infer<typeof ExtendedDescription> | null);
|
|
|
|
store.client.getInstanceExtendedDescription().then((res) => {
|
|
output.value = res.data;
|
|
});
|
|
|
|
return output;
|
|
};
|