import { Accessor, createResource } from "solid-js"; import { Account } from "../accounts/stores"; import { useMastoClientFor } from "./clients"; export function useAcctProfile(account: Accessor) { const client = useMastoClientFor(account) return createResource(client, (client) => { return client.v1.accounts.verifyCredentials() }, { name: "MastodonAccountProfile" }) }