13 lines
448 B
TypeScript
13 lines
448 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("polda", satker)
|
|
|
|
return <div className="p-2">{pathname?.includes("/satker") && <Image src={`/logo/satker/${satker}.png`} alt="Logo" width={1920} height={1080} className="object-contain h-[150px] w-[50px]" />}</div>;
|
|
};
|