import saleorDarkLogoSmall from "@assets/images/logo-dark-small.svg"; import plusIcon from "@assets/images/plus-icon.svg"; import { Card, CardContent, Grid, Typography } from "@material-ui/core"; import CardSpacer from "@saleor/components/CardSpacer"; import CardTitle from "@saleor/components/CardTitle"; import Container from "@saleor/components/Container"; import Hr from "@saleor/components/Hr"; import Skeleton from "@saleor/components/Skeleton"; import { buttonMessages } from "@saleor/intl"; import { Button } from "@saleor/macaw-ui"; import classNames from "classnames"; import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; import { useStyles } from "../../styles"; import { AppFetch_appFetchManifest_manifest } from "../../types/AppFetch"; export interface AppInstallPageProps { data: AppFetch_appFetchManifest_manifest; loading: boolean; navigateToAppsList: () => void; onSubmit: () => void; } export const AppInstallPage: React.FC = ({ data, loading, navigateToAppsList, onSubmit }) => { const intl = useIntl(); const classes = useStyles({}); const name = data?.name || ""; return ( ) : ( intl.formatMessage( { defaultMessage: `You are about to install {name}`, description: "section header" }, { name } ) ) } /> {loading ? ( ) : (

{name?.charAt(0).toUpperCase()}

)}
{loading ? ( ) : ( <> {!!data?.permissions?.length && (
    {data?.permissions?.map(perm => (
  • {perm.name}
  • ))}
)}
)}
); }; AppInstallPage.displayName = "AppInstallPage"; export default AppInstallPage;