import React from 'react' import { Colors, FontSizes, FontWeights, getColor, } from '@monorail/helpers/exports' import styled from '@monorail/helpers/styled-components' import { Text } from '@monorail/visualComponents/typography/Text' const TotalRow = styled.div` display: flex; padding: 4px 22px; flex-direction: row; justify-content: space-between; align-items: center; background: ${getColor(Colors.Grey94)}; height: 36px; position: sticky; bottom: 0; ` export type SelectionSummaryBarProps = { sortedData: Array totalItems: number totalSelectedItems: number } /** * Default "Pagination" component for `ReactTableSelect`. * Shows selection and items-in-table summaries. */ export const SelectionSummaryBar = ( props: SelectionSummaryBarProps, ) => { return (
{props.totalSelectedItems} {' '} selected
{props.sortedData.length} {' '} out of{' '} {props.totalItems} {' '} Shown
) }