"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
          src={`/logo/satker/${satker?.toUpperCase()}.png`}
          alt="Logo"
          width={1920}
          height={1080}
          className="object-contain h-[150px] w-[50px]"
        />
      )}
    </div>;
};
