Sha256: 9f183f03a6c05bfa40953926849532280dac4667d74bac1dfc086fb019405b4d

Contents?: true

Size: 692 Bytes

Versions: 3

Compression:

Stored size: 692 Bytes

Contents

/* @flow */

import React from 'react'
import classnames from 'classnames'

import {
  Caption,
} from '../'

import {
  buildCss,
  buildDataProps,
} from '../utilities/props'

type TimestampProps = {
  id?: String,
  data?: object,
  className?: String,
  text?: String,
}

const Timestamp = ({
  id,
  className,
  data = {},
  text,
}: TimestampProps) => {
  const dataProps = buildDataProps(data)
  const pbCss = buildCss('pb_timestamp_kit')

  return (
    <div
        {...dataProps}
        className={classnames(className, pbCss)}
        id={id}
    >
      <Caption
          size="xs"
          tag="span"
          text={text}
      />
    </div>
  )
}

export default Timestamp

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
playbook_ui-4.17.0.pre.alpha1 app/pb_kits/playbook/pb_timestamp/_timestamp.jsx
playbook_ui-4.16.0 app/pb_kits/playbook/pb_timestamp/_timestamp.jsx
playbook_ui-4.15.0 app/pb_kits/playbook/pb_timestamp/_timestamp.jsx