diff --git a/src/app/(account-pages)/account-savelists/page.tsx b/src/app/(account-pages)/account-savelists/page.tsx new file mode 100644 index 0000000..05905d4 --- /dev/null +++ b/src/app/(account-pages)/account-savelists/page.tsx @@ -0,0 +1,88 @@ +"use client"; + +import { Tab } from "@headlessui/react"; +import CarCard from "@/components/CarCard"; +import ExperiencesCard from "@/components/ExperiencesCard"; +import StayCard from "@/components/StayCard"; +import { + DEMO_CAR_LISTINGS, + DEMO_EXPERIENCES_LISTINGS, + DEMO_STAY_LISTINGS, +} from "@/data/listings"; +import React, { Fragment, useState } from "react"; +import ButtonSecondary from "@/shared/ButtonSecondary"; + +const AccountSavelists = () => { + let [categories] = useState(["Stays", "Experiences", "Cars"]); + + const renderSection1 = () => { + return ( +
+
+

Save lists

+
+
+ +
+ + + {categories.map((item) => ( + + {({ selected }) => ( + + )} + + ))} + + + +
+ {DEMO_STAY_LISTINGS.filter((_, i) => i < 8).map((stay) => ( + + ))} +
+
+ Show me more +
+
+ +
+ {DEMO_EXPERIENCES_LISTINGS.filter((_, i) => i < 8).map( + (stay) => ( + + ) + )} +
+
+ Show me more +
+
+ +
+ {DEMO_CAR_LISTINGS.filter((_, i) => i < 8).map((stay) => ( + + ))} +
+
+ Show me more +
+
+
+
+
+
+ ); + }; + + return renderSection1(); +}; + +export default AccountSavelists;