2025-06-05 06:49:13 +00:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import Image from "next/image";
|
|
|
|
|
import { usePathname } from "next/navigation";
|
|
|
|
|
|
|
|
|
|
export const DynamicLogoSatker = () => {
|
|
|
|
|
const pathname = usePathname();
|
|
|
|
|
const satker = pathname?.split("/")[3];
|
2025-06-05 09:23:46 +00:00
|
|
|
console.log("satker", satker)
|
2025-06-05 06:49:13 +00:00
|
|
|
|
2025-06-05 11:13:32 +00:00
|
|
|
return <div className="p-2">
|
|
|
|
|
{pathname?.includes("/satker") && (
|
|
|
|
|
<img
|
|
|
|
|
src={`/logo/satker/${satker}.png`}
|
|
|
|
|
alt="Logo"
|
|
|
|
|
width={1920}
|
|
|
|
|
height={1080}
|
|
|
|
|
className="object-contain h-[150px] w-[50px]"
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
</div>;
|
2025-06-05 06:49:13 +00:00
|
|
|
};
|