import Area from '@components/common/Area.js'; import React from 'react'; /** * Prints an address from `formatted` (spec § 3.6): the display lines the * server renders for the address's country and the request locale, so no * summary names fields and a line can never be dropped again (§ 1.2 #4). The * telephone follows on its own line. Shared by the storefront (address book, * checkout success) and the admin order view; stays inside Area * `addressSummary` so the two slots (`formatted`, `telephone`) can be * decorated or replaced. */ export interface AddressSummaryAddress { formatted?: string[] | null; telephone?: string | null; [key: string]: unknown; } function FormattedLines({ formatted }: { formatted: string[] }) { return (