/**
 * A property as a list or a picker names it: its building, and the purchase's
 * code — a building bought more than once is several properties under one
 * name, and the code is what tells them apart.
 *
 * No imports, so the admin app shares it through its `@api` alias, as it does
 * number-format.ts.
 */
export function propertyLabel(p: { name: string; code?: string | null }): string {
  return p.code ? `${p.name} · ${p.code}` : p.name;
}
