mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-28 15:57:41 +01:00
25 lines
569 B
TypeScript
25 lines
569 B
TypeScript
|
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">
|
||
|
<p className="flex items-center uppercase font-bold text-dink-300 mb-3">
|
||
|
{props.icon ? (
|
||
|
<span className="text-xl mr-2">
|
||
|
<Icon icon={props.icon} />
|
||
|
</span>
|
||
|
) : null}
|
||
|
{props.title}
|
||
|
</p>
|
||
|
{props.children}
|
||
|
</div>
|
||
|
);
|
||
|
}
|