Files
web/components/MyPages/Blocks/Stays/StayList/index.tsx
2024-05-14 10:33:15 +02:00

20 lines
456 B
TypeScript

import StayCard from "../StayCard"
import styles from "./stayList.module.css"
import { StayListProps } from "@/types/components/myPages/stays/stayList"
export default function StayList({ lang, stays }: StayListProps) {
return (
<section className={styles.stays}>
{stays.map((stay) => (
<StayCard
key={stay.attributes.confirmationNumber}
stay={stay}
lang={lang}
/>
))}
</section>
)
}