/* @flow */ import React from 'react' import classnames from 'classnames' import DateTime from '../pb_kit/dateTime.js' import { buildCss } from '../utilities/props' import { globalProps } from '../utilities/globalProps.js' import { Body, Caption, Icon } from '../' type TimeProps = { align?: 'left' | 'center' | 'right', className?: string | array, data?: string, date: string, dark?: boolean, id?: string, showIcon?: boolean, size?: 'md' | 'sm', showTimezone?: boolean, timeZone?: string, } const Time = (props: TimeProps) => { const { align, className, date, showIcon, size, timeZone, showTimezone = true } = props const classes = classnames( buildCss('pb_time_kit', align, size), globalProps(props), className ) const dateTimestamp = new DateTime({ value: date, zone: timeZone }) return (
{' '}
) } export default Time