added NPED cat sorting

This commit is contained in:
2025-09-22 09:26:45 +01:00
parent 50cedaf2c4
commit 69eb5cc7be
15 changed files with 212 additions and 46 deletions

View File

@@ -6,6 +6,7 @@ type InfoBarprops = {
};
const InfoBar = ({ obj }: InfoBarprops) => {
// const isNPEDHit = obj?.metadata?.npedJSON?.status_code === 404;
const isNPEDHitD = obj?.metadata?.npedJSON?.["NPED CATEGORY"] === "D";
return (
<div className="flex items-center gap-3 text-xs bg-neutral-900 px-2 py-1 rounded justify-between">
@@ -19,11 +20,11 @@ const InfoBar = ({ obj }: InfoBarprops) => {
</div>
<div className="min-w-14 opacity-80 ">
{/* {isNPEDHit ? (
<span className="text-red-500 font-semibold">NPED HIT</span>
{isNPEDHitD ? (
<span className="text-amber-500 font-semibold">NPED HIT CAT D</span>
) : (
""
)} */}
)}
</div>
</div>
);