2025-05-26 11:19:15 +02:00
|
|
|
import type { ExtendedDescription } from "@versia/client/schemas";
|
|
|
|
|
import type { z } from "zod";
|
2024-04-27 03:28:12 +02:00
|
|
|
|
2025-08-28 07:41:51 +02:00
|
|
|
export const useExtendedDescription = () => {
|
|
|
|
|
const store = useAuthStore();
|
2024-04-26 01:04:45 +02:00
|
|
|
|
2025-05-26 11:19:15 +02:00
|
|
|
const output = ref(null as z.infer<typeof ExtendedDescription> | null);
|
2024-04-27 03:28:12 +02:00
|
|
|
|
2025-08-28 07:41:51 +02:00
|
|
|
store.client.getInstanceExtendedDescription().then((res) => {
|
|
|
|
|
output.value = res.data;
|
|
|
|
|
});
|
2024-04-27 03:28:12 +02:00
|
|
|
|
|
|
|
|
return output;
|
2024-04-26 01:04:45 +02:00
|
|
|
};
|