import React, { FunctionComponent } from 'react' import { Box, Text } from '@vtex/store-ui' import { SummaryContextProvider } from './SummaryContext' interface Props { totalizers: any[] total: number totalizersToShow: string[] } export const SummarySmall: FunctionComponent = ({ total, children, totalizers, totalizersToShow = ['Items'], }) => { const filteredTotalizers = totalizers.filter((totalizer) => totalizersToShow.includes(totalizer.id) ) return ( {children} Shipping and taxes calculated at checkout. ) }