interface RentalsOwnedProps { properties: Property[]; } import { Property } from "../db/interfaces.ts"; import { PopAddRentalDialog } from "./dialogs/PopAddRentalDialog.tsx"; export default function RentalsOwned({ properties }: RentalsOwnedProps) { const [popAddRental, popupAddRentalDialog] = PopAddRentalDialog(properties); return ( <> {popupAddRentalDialog}

Your Rentals

{properties.length === 0 ? (
You do not own any rental properties yet.
) : (
{properties.map((property: Property) => (
{ /* */ } {property.image_url && ( {property.title )}
{property.title || "Untitled Property"}
{property.address_1} {property.city}, {property.state}
${property.price?.toLocaleString() || "-"}
View Details
))}
)}
); }