import React from "react"; // PatternFly import { Content, Title } from "@patternfly/react-core"; interface PropsToTitleLayout { headingLevel: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; id: string; text: string; className?: string; ouiaId?: number | string; ouiaSafe?: boolean; size?: "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl"; preText?: string; } const TitleLayout = (props: PropsToTitleLayout) => { const titleText = props.preText ? (
{props.preText}
{props.text}
) : ( <>{props.text} ); return ( {titleText} ); }; export default TitleLayout;