Sha256: d5d441fd58239dc60e25ff8e3df93f398921e2f744eab6ccb1015a0238e81cdb
Contents?: true
Size: 904 Bytes
Versions: 35
Compression:
Stored size: 904 Bytes
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { buildCss } from '../utilities/props' import DateTime from '../pb_kit/dateTime.js' import { Body, Title, } from '../' type DateYearStackedProps = { align?: 'center' | 'right', className?: String | Array<String>, dark?: Boolean, data?: String, date: String, id?: String, } const DateYearStacked = ({ align, className, dark = false, date, }: DateYearStackedProps) => { const dateTimestamp = new DateTime({ value: date }) const css = classnames(className, buildCss('pb_date_year_stacked', align)) return ( <div className={css}> <Title dark={dark} size={4} text={`${dateTimestamp.toDay()} ${dateTimestamp.toMonth().toUpperCase()}`} /> <Body color="light">{ dateTimestamp.toYear() }</Body> </div> ) } export default DateYearStacked
Version data entries
35 entries across 35 versions & 1 rubygems