import React, { ReactNode } from "react"; import { Image } from "@/components/Image"; import styles from "./Header.module.css"; export interface Props { title: string; image: string; children: ReactNode; description?: string; imagePosition?: "left" | "right"; } export function Header({ title, image, children, description, imagePosition, }: Props) { return (

{title}

{description &&

{description}

}
{children}
); }