/* eslint-disable @typescript-eslint/no-explicit-any */ interface AddressLabelProps { order?: any; // Ideally replace `any` with the correct type } const PrintAddress: React.FC = ({ order }) => { const formattedAddress = `${order?.destination_block_details?.name || ""}, ${ order?.destination_road_details?.name || "" } & ${order?.destination_building_details?.name || ""}, ${ order?.destinationFlatOrOfficeNumber || "" }`; return (

{formattedAddress.trim() !== ", & ," ? ( <> {order?.destination_block_details?.name},
{order?.destination_road_details?.name},
{order?.destination_building_details?.name},
{order?.destinationFlatOrOfficeNumber} ) : ( <> 57 Parkway, 5th Floor
New York
NY 10013
USA )}

); }; export default PrintAddress;