2025-09-16 14:20:38 +01:00
|
|
|
import type { SightingType } from "../../types/types";
|
2025-09-16 11:07:35 +01:00
|
|
|
import { capitalize, formatAge } from "../../utils/utils";
|
|
|
|
|
|
|
|
|
|
type InfoBarprops = {
|
2025-09-16 14:20:38 +01:00
|
|
|
obj: SightingType;
|
2025-09-16 11:07:35 +01:00
|
|
|
};
|
|
|
|
|
const InfoBar = ({ obj }: InfoBarprops) => {
|
|
|
|
|
return (
|
|
|
|
|
<div className="flex items-center gap-3 text-xs bg-neutral-900 px-2 py-1 rounded justify-between">
|
|
|
|
|
<div className="flex items-center gap-3 text-xs">
|
|
|
|
|
<div className="min-w-14">CH: {obj ? obj.charHeight : "—"}</div>
|
|
|
|
|
<div className="min-w-14">Seen: {obj ? obj.seenCount : "—"}</div>
|
|
|
|
|
<div className="min-w-20">{obj ? capitalize(obj.motion) : "—"}</div>
|
2025-09-19 10:09:14 +01:00
|
|
|
<div className="min-w-14 opacity-80 text-md">
|
2025-09-16 11:07:35 +01:00
|
|
|
{obj ? formatAge(obj.timeStampMillis) : "—"}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2025-10-14 08:50:06 +01:00
|
|
|
<div className="min-w-14 opacity-80 "></div>
|
2025-09-16 11:07:35 +01:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default InfoBar;
|