import { NextPage } from "next"; import { useAppBridge } from "@saleor/app-sdk/app-bridge"; import { useEffect } from "react"; import { useIsMounted } from "usehooks-ts"; import { useRouter } from "next/router"; import { LinearProgress } from "@material-ui/core"; import { isInIframe } from "../lib/is-in-iframe"; import { appName } from "../const"; const IndexPage: NextPage = () => { const { appBridgeState } = useAppBridge(); const isMounted = useIsMounted(); const { replace } = useRouter(); useEffect(() => { if (isMounted() && appBridgeState?.ready) { replace("/configuration/channels"); } }, [isMounted, appBridgeState?.ready, replace]); if (isInIframe()) { return ; } return (

{appName}

This is Saleor App that allows product feed generation

Install app in your Saleor instance and open in with Dashboard

); }; export default IndexPage;