2025-08-15 09:32:33 +01:00
|
|
|
import type { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
|
|
|
|
2025-08-13 14:23:48 +01:00
|
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
|
|
|
import clsx from "clsx";
|
|
|
|
|
|
|
|
|
|
type CameraOverviewHeaderProps = {
|
|
|
|
|
title: string;
|
2025-08-18 12:53:30 +01:00
|
|
|
icon?: IconProp;
|
2025-08-13 14:23:48 +01:00
|
|
|
};
|
|
|
|
|
|
2025-08-15 09:32:33 +01:00
|
|
|
const CardHeader = ({ title, icon }: CameraOverviewHeaderProps) => {
|
2025-08-13 14:23:48 +01:00
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
className={clsx(
|
|
|
|
|
"w-full border-b border-gray-600 flex flex-row items-center space-x-2 md:mb-6"
|
|
|
|
|
)}
|
|
|
|
|
>
|
2025-08-18 12:53:30 +01:00
|
|
|
{icon && <FontAwesomeIcon icon={icon} className="size-4" />}
|
2025-08-13 14:23:48 +01:00
|
|
|
<h2 className="text-xl">{title}</h2>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
2025-08-15 09:32:33 +01:00
|
|
|
export default CardHeader;
|