mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
11 lines
317 B
TypeScript
11 lines
317 B
TypeScript
import type { LysandClient } from "@lysand-org/client";
|
|
|
|
// Return type of LysandClient.getInstance
|
|
export type Instance = Awaited<ReturnType<LysandClient["getInstance"]>>["data"];
|
|
|
|
export const useInstance = () => {
|
|
const identity = useCurrentIdentity();
|
|
|
|
return computed(() => identity.value?.instance);
|
|
};
|