24 lines
593 B
TypeScript
24 lines
593 B
TypeScript
"use client";
|
|
|
|
import Image from "next/image";
|
|
import { usePathname } from "next/navigation";
|
|
|
|
export const DynamicLogoSatker = () => {
|
|
const pathname = usePathname();
|
|
const satker = pathname?.split("/")[3];
|
|
console.log("satker", satker?.toUpperCase())
|
|
|
|
return <div className="p-2">
|
|
{pathname?.includes("/satker") && (
|
|
<Image
|
|
priority={true}
|
|
src={`/logo/satker/${satker?.toUpperCase()}.png`}
|
|
alt="Logo"
|
|
width={1920}
|
|
height={1080}
|
|
className="object-contain h-[150px] w-[50px]"
|
|
/>
|
|
)}
|
|
</div>;
|
|
};
|