Sha256: efd419a2259de4e7fba4fc28aac67858577023d8f9b37d03886f4b61d76398d7
Contents?: true
Size: 764 Bytes
Versions: 44
Compression:
Stored size: 764 Bytes
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { Caption } from '../' import { buildCss, buildDataProps } from '../utilities/props' import { spacing } from '../utilities/spacing.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, spacing(props))} id={id} > <Caption size="xs" tag="span" text={text} /> </div> ) } export default Timestamp
Version data entries
44 entries across 44 versions & 1 rubygems