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