import Image from "next/image" import { NodeProps } from "components/node" export function NodeProperty({ node, viewMode, ...props }: NodeProps) { if (viewMode === "list") { return } return } export function NodePropertyGrid({ node }) { const thumbnail = node.field_images?.[0].field_media_image return (
{node.field_status ? (

{node.field_status === "rent" ? "For Rent" : "For Sale"}

) : null} {thumbnail && ( )}

{node.field_location.name}

{node.field_size && (

{node.field_size} sqft

)}

{node.title}

{node.field_teaser && (

{node.field_teaser}

)}
{node.field_beds && (

{node.field_beds} beds

)} {node.field_baths && (

{node.field_baths} baths

)}
) } export function NodePropertyList({ node }) { const thumbnail = node.field_images?.[0].field_media_image return (
{node.field_status ? (

{node.field_status === "rent" ? "For Rent" : "For Sale"}

) : null}
{thumbnail && ( )}

{node.field_location.name}

{node.field_size && (

{node.field_size} sqft

)}

{node.title}

{node.field_teaser && (

{node.field_teaser}

)}
{node.field_beds && (

{node.field_beds} beds

)} {node.field_baths && (

{node.field_baths} baths

)}
) }