import type { Identity } from '@/lib/compose-context' import { FALLBACK_COMPOSE_IDENTITY } from '@/lib/compose-context' import { getDefaultComposeIdentity } from '@/lib/stores/compose-identities-store' /** Default From identity for compose; server-backed when hydrated. */ export function resolveComposeIdentity(accountId?: string | null): Identity { return getDefaultComposeIdentity(accountId) ?? FALLBACK_COMPOSE_IDENTITY }