import { actions, useAppBridge } from "@saleor/app-sdk/app-bridge"; import { Box, PropsWithBox, Text } from "@saleor/macaw-ui/next"; const SALEOR_EVENTS_DOCS_URL = "https://docs.saleor.io/docs/3.x/developer/extending/apps/asynchronous-webhooks#available-webhook-events"; export const MainInstructions = ({ children, ...props }: PropsWithBox<{}>) => { const { appBridge } = useAppBridge(); return ( To configure the App, fill in your Algolia settings to enable products indexing. Once the App is configured, you will be able to perform initial index of your existing Saleor database. The app supports following{" "} { e.preventDefault(); /** * TODO extract shared handler */ appBridge?.dispatch( actions.Redirect({ to: SALEOR_EVENTS_DOCS_URL, newContext: true, }) ); }} href={SALEOR_EVENTS_DOCS_URL} > events {" "} that will synchronize Algolia in the background: ); };