import { FC, useState } from "react"; 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 url = `${origin}/zammad${path}`; console.log({ origin, path, url }); return ( // @ts-ignore