Sha256: d7b484d80a2d35113002e913d286b7bcc53e15ec1b77431682f81f103ecf0cde
Contents?: true
Size: 690 Bytes
Versions: 3
Compression:
Stored size: 690 Bytes
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { globalProps } from '../utilities/globalProps.js' import { buildDataProps } from '../utilities/props' type OnlineStatusProps = { className?: string, data?: object, id?: string, status?: "online" | "offline" | "away", } const OnlineStatus = (props: OnlineStatusProps) => { const { id, data = {}, className, status = 'offline' } = props const dataProps = buildDataProps(data) const css = classnames([`pb_online_status_kit_${status}`, className], globalProps(props)) return ( <div {...dataProps} className={css} id={id} /> ) } export default OnlineStatus
Version data entries
3 entries across 3 versions & 1 rubygems