16 lines
394 B
TypeScript
16 lines
394 B
TypeScript
import StayCard from "../StayCard"
|
|
|
|
import styles from "./stayList.module.css"
|
|
|
|
import { StayListProps } from "@/types/components/myPages/myStays/stayList"
|
|
|
|
export default function StayList({ lang, stays }: StayListProps) {
|
|
return (
|
|
<section className={styles.stays}>
|
|
{stays.map((stay) => (
|
|
<StayCard key={stay.uid} stay={stay} lang={lang} />
|
|
))}
|
|
</section>
|
|
)
|
|
}
|