import { createStyles, Theme, withStyles, WithStyles } from "@material-ui/core/styles"; import Typography from "@material-ui/core/Typography"; import React from "react"; import Skeleton from "@saleor/components/Skeleton"; import i18n from "../../../i18n"; const styles = (theme: Theme) => createStyles({ headerContainer: { marginBottom: theme.spacing.unit * 3 }, pageHeader: { fontWeight: 600 as 600 }, subtitle: { color: theme.typography.caption.color } }); interface HomeOrdersCardProps extends WithStyles { userName: string; } const HomeOrdersCard = withStyles(styles, { name: "HomeOrdersCard" })( ({ classes, userName }: HomeOrdersCardProps) => (
{userName ? ( i18n.t("Hello there, {{userName}}", { userName }) ) : ( )} {userName ? ( i18n.t("Here is some information we gathered about your store") ) : ( )}
) ); HomeOrdersCard.displayName = "HomeOrdersCard"; export default HomeOrdersCard;