diff --git a/src/app/(listing-detail)/(components)/MobileFooterSticky.tsx b/src/app/(listing-detail)/(components)/MobileFooterSticky.tsx new file mode 100644 index 0000000..7f48336 --- /dev/null +++ b/src/app/(listing-detail)/(components)/MobileFooterSticky.tsx @@ -0,0 +1,49 @@ +import React, { useState } from "react"; +import ModalSelectDate from "@/components/ModalSelectDate"; +import ButtonPrimary from "@/shared/ButtonPrimary"; +import converSelectedDateToString from "@/utils/converSelectedDateToString"; +import ModalReserveMobile from "./ModalReserveMobile"; + +const MobileFooterSticky = () => { + const [startDate, setStartDate] = useState( + new Date("2023/02/06") + ); + const [endDate, setEndDate] = useState(new Date("2023/02/23")); + + return ( +
+
+
+ + $311 + + /night + + + ( + + {converSelectedDateToString([startDate, endDate])} + + )} + /> +
+ ( + + Reserve + + )} + /> +
+
+ ); +}; + +export default MobileFooterSticky;