- added feature to cache sounds for cross devices - should work in theory
This commit is contained in:
@@ -11,25 +11,18 @@ type CameraOverviewHeaderProps = {
|
||||
sighting?: SightingType | null;
|
||||
};
|
||||
|
||||
const CardHeader = ({
|
||||
title,
|
||||
icon,
|
||||
img,
|
||||
sighting,
|
||||
}: CameraOverviewHeaderProps) => {
|
||||
const CardHeader = ({ title, icon, img, sighting }: CameraOverviewHeaderProps) => {
|
||||
return (
|
||||
<div
|
||||
className={clsx(
|
||||
"w-full border-b border-gray-600 flex flex-row items-center space-x-2 md:mb-6 relative justify-between"
|
||||
"w-full border-b border-gray-600 flex flex-row items-center space-x-2 mb-6 relative justify-between"
|
||||
)}
|
||||
>
|
||||
<div className="flex items-center space-x-2">
|
||||
{icon && <FontAwesomeIcon icon={icon} className="size-4" />}
|
||||
<h2 className="text-xl">{title}</h2>
|
||||
</div>
|
||||
{img && (
|
||||
<img src={img} alt="Logo" width={100} height={50} className="ml-auto" />
|
||||
)}
|
||||
{img && <img src={img} alt="Logo" width={100} height={50} className="ml-auto" />}
|
||||
{sighting?.vrm && <NumberPlate vrm={sighting.vrm} motion={false} />}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user