Sha256: c5190b18ec4a684ee4e4a9133793c9172657696b2224b5d475fd0c88e6a25278

Contents?: true

Size: 615 Bytes

Versions: 3

Compression:

Stored size: 615 Bytes

Contents

/* @flow */

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

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

type OnlineStatusProps = {
  className?: String,
  data?: object,
  id?: String,
  status?: "online" | "offline" | "away",
}

const OnlineStatus = ({
  id,
  data = {},
  className,
  status = 'offline',
}: OnlineStatusProps) => {
  const dataProps = buildDataProps(data)
  const css = classnames([
    `pb_online_status_kit_${status}`,
    className,
  ])

  return (
    <div
        {...dataProps}
        className={css}
        id={id}
    />
  )
}

export default OnlineStatus

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
playbook_ui-4.17.0.pre.alpha1 app/pb_kits/playbook/pb_online_status/_online_status.jsx
playbook_ui-4.16.0 app/pb_kits/playbook/pb_online_status/_online_status.jsx
playbook_ui-4.15.0 app/pb_kits/playbook/pb_online_status/_online_status.jsx