import properties from '@/properties.json'; import Link from 'next/link'; import PropertyCard from './PropertyCard'; const HomeProperties = () => { const recentProperties = properties .sort(() => Math.random() - Math.random()) .slice(0, 3); return ( <> Recent Properties {recentProperties.length === 0 ? ( No Properties Found ) : ( recentProperties.map((property) => ( )) )} View All Properties > ); }; export default HomeProperties;
No Properties Found