import type { IconProp } from "@fortawesome/fontawesome-svg-core"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import clsx from "clsx"; import NumberPlate from "../PlateStack/NumberPlate"; import type { SightingType } from "../../types/types"; type CameraOverviewHeaderProps = { title: string; icon?: IconProp; img?: string; sighting?: SightingType | null; }; const CardHeader = ({ title, icon, img, sighting, }: CameraOverviewHeaderProps) => { // console.log(sighting?.debug.toLowerCase()); return (
{icon && }

{title}

{img && ( Logo )} {sighting?.vrm && }
); }; export default CardHeader;