--- import LocalFileLink from "./LocalFileLink.astro"; import Translated from "./Translated.astro"; import WIPIndicator from "./WIPIndicator.astro"; type Props = { back?: string; editButton?: string; editFolderButton?: string; } & ( | { title: string; wip?: undefined } | { title: { fr: string; en: string }; wip?: boolean } | { title: { img: { src: string; alt: string; srcset: string; height: string; width: string; }; }; wip?: boolean; } ); const { title, wip, back, editButton, editFolderButton } = Astro.props; ---
{ (editButton || back) && ( ) } { typeof title === "string" ? (

{title}

) : "img" in title ? (

) : (

{wip && }

) }