mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-04 22:09:46 +00:00
27 lines
684 B
TypeScript
27 lines
684 B
TypeScript
import { ReactNode } from "react";
|
|
import { Icon, Icons } from "@/components/Icon";
|
|
|
|
interface SectionHeadingProps {
|
|
icon?: Icons;
|
|
title: string;
|
|
children?: ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export function SectionHeading(props: SectionHeadingProps) {
|
|
return (
|
|
<div className={props.className}>
|
|
<div className="mb-5 flex items-center">
|
|
<p className="flex flex-1 items-center font-bold uppercase text-denim-700">
|
|
{props.icon ? (
|
|
<span className="mr-2 text-xl">
|
|
<Icon icon={props.icon} />
|
|
</span>
|
|
) : null}
|
|
{props.title}
|
|
</p>
|
|
{props.children}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|