import { CheckCircleIcon, ChevronDownIcon } from "@/components/Icons" import Button from "@/components/TempDesignSystem/Button" import Link from "@/components/TempDesignSystem/Link" import Body from "@/components/TempDesignSystem/Text/Body" import Caption from "@/components/TempDesignSystem/Text/Caption" import { getIntl } from "@/i18n" import styles from "./sectionAccordion.module.css" import { SectionAccordionProps } from "@/types/components/hotelReservation/selectRate/sectionAccordion" export default async function SectionAccordion({ header, selection, path, children, }: React.PropsWithChildren) { const intl = await getIntl() return (

{header}

{(Array.isArray(selection) ? selection : [selection]).map((s) => ( {s} ))}
{selection && ( )}
{children}
) }