mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-28 15:23:26 +00:00
This commit updates the import statements in the codebase to comply with ESLint rules for import ordering. All imports have been sorted alphabetically and grouped according to the specified import groups in the ESLint configuration. This improves the codebase's consistency and maintainability.
28 lines
685 B
TypeScript
28 lines
685 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>
|
|
);
|
|
}
|