Sha256: 965fc7aa350cfa1a065bbe5c10033c073ca9449d61fbc61d0bb9aab74d529a75
Contents?: true
Size: 1.37 KB
Versions: 37
Compression:
Stored size: 1.37 KB
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { buildCss } from '../utilities/props' import { globalProps } from '../utilities/globalProps.js' import { Body, DateYearStacked, Flex, FlexItem, Icon } from '../' type DateRangeStackedProps = { className?: string | array<string>, data?: string, dark?: boolean, endDate: string, id?: string, startDate: string, } const DateRangeStacked = (props: DateRangeStackedProps) => { const { className, dark = false, endDate, startDate } = props const css = classnames(className, buildCss('pb_date_range_stacked'), globalProps(props)) return ( <div className={css}> <Flex vertical="center"> <FlexItem> <DateYearStacked align="right" dark={dark} date={startDate} /> </FlexItem> <FlexItem> <div> <Body color="light" tag="span" > <Icon className="pb_date_range_stacked_arrow" fixedWidth icon="long-arrow-right" /> </Body> </div> </FlexItem> <FlexItem> <DateYearStacked dark={dark} date={endDate} /> </FlexItem> </Flex> </div> ) } export default DateRangeStacked
Version data entries
37 entries across 37 versions & 1 rubygems