"use client" import { zodResolver } from "@hookform/resolvers/zod" import { FormProvider, useForm } from "react-hook-form" import { useIntl } from "react-intl" import { BreakfastIcon, NoBreakfastIcon } from "@/components/Icons" import RadioCard from "@/components/TempDesignSystem/Form/Card/Radio" import { breakfastSchema } from "./schema" import styles from "./breakfast.module.css" import type { BreakfastSchema } from "@/types/components/enterDetails/breakfast" import { breakfastEnum } from "@/types/enums/breakfast" export default function Breakfast() { const intl = useIntl() const methods = useForm({ criteriaMode: "all", mode: "all", resolver: zodResolver(breakfastSchema), reValidateMode: "onChange", }) return (
{amount} {currency}/night per adult" }, { amount: "150", b: (str) => {str}, currency: "SEK", } )} text={intl.formatMessage({ id: "All our breakfast buffets offer gluten free, vegan, and allergy-friendly options.", })} title={intl.formatMessage({ id: "Breakfast buffet" })} value={breakfastEnum.BREAKFAST} />
) }