Sha256: 43efc346774479337b6d95eec34aabcbd94e42b8022c5e6181a871156d2b520e
Contents?: true
Size: 776 Bytes
Versions: 7
Compression:
Stored size: 776 Bytes
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { Caption } from '../' import { buildCss, buildDataProps } from '../utilities/props' import { globalProps } from '../utilities/globalProps.js' type TimestampProps = { id?: String, data?: object, className?: String, text?: String, } const Timestamp = (props: TimestampProps) => { const { id, className, data = {}, text } = props const dataProps = buildDataProps(data) const pbCss = buildCss('pb_timestamp_kit') return ( <div {...dataProps} className={classnames(className, pbCss, globalProps(props))} id={id} > <Caption size="xs" tag="span" text={text} /> </div> ) } export default Timestamp
Version data entries
7 entries across 7 versions & 1 rubygems