/** * Copyright (c) OpenLens Authors. All rights reserved. * Licensed under MIT License. See LICENSE in root directory for more information. */ import "./sub-title.scss"; import React from "react"; import type { SingleOrMany } from "../../utils"; import { cssNames } from "../../utils"; export interface SubTitleProps { className?: string; title: React.ReactNode; compact?: boolean; // no bottom padding id?: string; children?: SingleOrMany; } export class SubTitle extends React.Component { render() { const { className, compact, title, children, id } = this.props; const classNames = cssNames("SubTitle", className, { compact, }); return (
{title} {" "} {children}
); } }