import type { SightingType } from "../../types/types";
type SightingWidgetDetailsProps = {
effectiveSelected: SightingType | null;
};
const SightingWidgetDetails = ({
effectiveSelected,
}: SightingWidgetDetailsProps) => {
return (
<>
{effectiveSelected?.vrm && (
VRM:{" "}
{effectiveSelected?.vrm ?? "—"}
)}
{effectiveSelected?.make !== "" && (
Make:{" "}
{effectiveSelected?.make ?? "—"}
)}
{effectiveSelected?.model.trim() !== "" && (
Model:{" "}
{effectiveSelected?.model ?? "—"}
)}
{effectiveSelected?.color !== "" && (
Colour:{" "}
{effectiveSelected?.color ?? "—"}
)}
>
);
};
export default SightingWidgetDetails;