import { FormattedMessage } from 'react-intl' import React from 'react' import { Button, Flex, Text } from 'theme-ui' import type { FC, MouseEventHandler } from 'react' import Center from '../../../Center' import Spinner from '../../../Spinner' interface Props { variant: string total: number subTotal: number onCheckout: MouseEventHandler disableViewCart: boolean numberFormat: (num: number) => string } const MinicartDrawerFooter: FC = ({ variant: v, total, subTotal, disableViewCart, onCheckout, numberFormat, }) => { const variant = `${v}.footer` return ( {numberFormat(total)} {numberFormat(subTotal)} ) } export default MinicartDrawerFooter