From 07c861a8c2924e51ea66638cde4825eef51a176b Mon Sep 17 00:00:00 2001 From: John Doe Date: Tue, 12 Sep 2023 19:33:58 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=9F=20Added=20a=20new=20component=20?= =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Refactored=20code=20for=20better=20read?= =?UTF-8?q?ability=20=F0=9F=93=B7=20Updated=20image=20handling=20?= =?UTF-8?q?=F0=9F=9A=A7=20Work=20in=20progress:=20SectionHeroArchivePage?= =?UTF-8?q?=20=F0=9F=90=9B=20Fixed=20a=20bug=20in=20SectionHeroArchivePage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SectionHeroArchivePage.tsx | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/app/(server-components)/SectionHeroArchivePage.tsx diff --git a/src/app/(server-components)/SectionHeroArchivePage.tsx b/src/app/(server-components)/SectionHeroArchivePage.tsx new file mode 100644 index 0000000..deff98b --- /dev/null +++ b/src/app/(server-components)/SectionHeroArchivePage.tsx @@ -0,0 +1,67 @@ +import React, { FC, ReactNode } from "react"; +import imagePng from "@/images/hero-right2.png"; +import HeroSearchForm, { + SearchTab, +} from "../(client-components)/(HeroSearchForm)/HeroSearchForm"; +import Image, { StaticImageData } from "next/image"; + +export interface SectionHeroArchivePageProps { + className?: string; + listingType?: ReactNode; + currentPage: "Stays" | "Experiences" | "Cars" | "Flights"; + currentTab: SearchTab; + rightImage?: StaticImageData; +} + +const SectionHeroArchivePage: FC = ({ + className = "", + listingType, + currentPage, + currentTab, + rightImage = imagePng, +}) => { + return ( +
+
+
+

+ Tokyo, Jappan +

+
+ + Jappan + + {listingType ? ( + listingType + ) : ( + <> + + 112 properties + + )} +
+
+
+ hero +
+
+ +
+
+ +
+
+
+ ); +}; + +export default SectionHeroArchivePage;