"use client"; import { FC, useState } from "react"; import getConfig from "next/config"; import { useRouter } from "next/navigation"; import Iframe from "react-iframe"; type ZammadWrapperProps = { path: string; hideSidebar?: boolean; }; export const ZammadWrapper: FC = ({ path, hideSidebar = true, }) => { const router = useRouter(); const [display, setDisplay] = useState("none"); const url = `/proxy/zammad${path}`; console.log({ url }); return ( // @ts-ignore