import type Title from "./Title.js"; export default function TitleTemplate(this: Title) { return ( <> { title.call(this, this.level) } ); } function title(this: Title, titleLevel: string) { switch (titleLevel) { case "H1": return (

{ titleInner.call(this) }

); case "H2": return (

{ titleInner.call(this) }

); case "H3": return (

{ titleInner.call(this) }

); case "H4": return (

{ titleInner.call(this) }

); case "H5": return (
{ titleInner.call(this) }
); case "H6": return (
{ titleInner.call(this) }
); default: return (

{ titleInner.call(this) }

); } } function titleInner(this: Title) { return ( ); }