2025-06-03 03:35:09 +00:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import Image from "next/image";
|
|
|
|
|
import { usePathname } from "next/navigation";
|
|
|
|
|
|
|
|
|
|
export const DynamicLogoPolda = () => {
|
|
|
|
|
const pathname = usePathname();
|
2025-06-05 02:48:13 +00:00
|
|
|
const polda = pathname?.split("/")[3];
|
2025-06-09 09:50:30 +00:00
|
|
|
console.log("polda", polda);
|
2025-06-03 03:35:09 +00:00
|
|
|
|
2025-06-09 09:50:30 +00:00
|
|
|
return (
|
|
|
|
|
<div className="p-2">
|
|
|
|
|
{pathname?.includes("/polda") && (
|
|
|
|
|
<Image
|
2025-07-06 14:57:09 +00:00
|
|
|
priority={true}
|
2025-06-09 09:50:30 +00:00
|
|
|
src={`/logo/polda/polda-${polda}.png`}
|
|
|
|
|
alt="Logo"
|
|
|
|
|
width={1920}
|
|
|
|
|
height={1080}
|
|
|
|
|
className="object-contain h-[150px] w-[50px]"
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
2025-06-03 03:35:09 +00:00
|
|
|
};
|