import Image from "next/image"; import TrainingType from "@/types/training"; import { Container } from "@/components/Container"; import { Button } from "@/components/Button"; type Props = { training: TrainingType; }; export const Training = ({ training }: Props) => { const formatter = new Intl.NumberFormat("cs", { style: "currency", currency: "CZK", maximumFractionDigits: 0, }); return ( <>

Školení {training.name}

{training.days === 2 ? (
{/*

Toto školení je{" "} dvoudenní.

) : ( <> )}

Cena za školení

Veřejný termín
{formatter.format(training.priceOpen)} bez DPH
Firemní školení
{formatter.format(training.priceCompany)} bez DPH
); };