import { PageTab, PageTabs } from "@saleor/macaw-ui"; import React, { ComponentProps } from "react"; import { useIntl } from "react-intl"; export type AppPageTabValue = | "THIRD_PARTY" | "WEBHOOKS_AND_EVENTS" | "SALEOR_APPS"; type AllProps = ComponentProps; type AvailableProps = Omit & { value: AppPageTabValue; showSaleorApps: boolean; onChange(newValue: AppPageTabValue): void; }; export const AppPageTabs = ({ showSaleorApps, ...props }: AvailableProps) => { const intl = useIntl(); return ( {showSaleorApps && ( )} ); };