feat: Add profile viewer

This commit is contained in:
Jesse Wierzbinski 2024-12-02 16:07:52 +01:00
parent a6c5093cf5
commit 1194bc4ffb
No known key found for this signature in database
19 changed files with 466 additions and 47 deletions

View file

@ -0,0 +1,17 @@
import type { Client } from "@versia/client";
import type { Account } from "@versia/client/types";
export const useAccountFromAcct = (
client: MaybeRef<Client | null>,
acct: string,
): Ref<Account | null> => {
const output = ref(null as Account | null);
ref(client)
.value?.lookupAccount(acct)
.then((res) => {
output.value = res.data;
});
return output;
};