importHomefrom"../components/home/Home";importLayoutfrom"../components/layout/Layout";importListingfrom"../components/listing/Listing";import{wrapper}from"../redux/store";exportdefaultfunctionListingPage(){/** Client side rendering, traditional API call. */// const dispatch = useDispatch();// useEffect(() => {// const fetchData = async () => {// await dispatch(getProjects({ currentPage: 1, featuredOnHome: true }));// };// fetchData();// });return(<Layout><Listing/></Layout>);}/** For server side rendering */exportconstgetStaticProps=wrapper.getStaticProps(store=>async({req,query})=>{// Get the menu data.// get the locations data.return{props:{},};});