+ Profile version {latest.profileSnapshot.profileVersion} · Submitted {new Date(latest.createdAt).toLocaleString()}
+
+ {can("b2b.verify") && (ownSubmission ? A different staff member must review this submission. :
+ decision.pending ? {} : ({ decision: readText(form, "decision"), note: readText(form, "note") })}
+ submit={(value) => whileCurrent(() => decision.run(value))}>
+ {decision.pending ? Retrying uses the saved {decision.pending.decision.toLowerCase()} decision and note. : <>
+ Record the outcome of your manual review of this submitted profile.
+
+
+ >}
+ )}
+ }
+ >;
+}
+
+function Accounts({ id, create }: { id?: string; create?: boolean }) {
+ const { scope } = usePlatform();
+ const client = useQueryClient();
+ const refreshDirectory = () => client.invalidateQueries({
+ predicate: ({ queryKey }) => queryKey[0] === "private" && queryKey[1] === scope &&
+ typeof queryKey[2] === "string" && queryKey[2].startsWith(`${api}?`),
+ });
+ const parsed = uuid.safeParse(id);
+ if (!create && !id) return