2022-02-10 23:45:17 +01:00
|
|
|
import { Icon, Icons } from "components/Icon";
|
|
|
|
import { ReactNode } from "react";
|
|
|
|
|
|
|
|
interface SectionHeadingProps {
|
|
|
|
icon?: Icons;
|
|
|
|
title: string;
|
|
|
|
children?: ReactNode;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function SectionHeading(props: SectionHeadingProps) {
|
|
|
|
return (
|
|
|
|
<div className="mt-12">
|
2022-02-16 22:38:37 +01:00
|
|
|
<p className="text-denim-700 mb-4 flex items-center font-bold uppercase">
|
2022-02-10 23:45:17 +01:00
|
|
|
{props.icon ? (
|
2022-02-16 22:38:37 +01:00
|
|
|
<span className="mr-2 text-xl">
|
2022-02-10 23:45:17 +01:00
|
|
|
<Icon icon={props.icon} />
|
|
|
|
</span>
|
|
|
|
) : null}
|
|
|
|
{props.title}
|
|
|
|
</p>
|
|
|
|
{props.children}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|