Sha256: 9e216fbbffdeabcbf8a21106a0d9297d103896d5534f5ba8660759ec2195581e

Contents?: true

Size: 926 Bytes

Versions: 34

Compression:

Stored size: 926 Bytes

Contents

/* @flow */

import React from 'react'
import classnames from 'classnames'
import { Body, Caption, Icon, Title } from '../'

const renderProjectName = (link, projectName) => {
  if (link) {
    return (
      <a
          className="pb_installer_kit_links"
          href={link}
      >
        <Title
            size={4}
            tag="span"
            text={projectName}
        />
      </a>
    )
  }

  return (
    <Title
        size={4}
        tag="span"
        text={projectName}
    />
  )
}

type InstallerProps = {
  link?: String,
  projectName: String,
}

const Installer = ({
  link,
  projectName,
}: InstallerProps) => (
  <div className={classnames('pb_installer_kit')}>
    <Body color="light">
      <Caption text="Installer" />
      <Icon
          fixedwidth
          icon="truck"
      />
      {' '}
      {renderProjectName(link, projectName)}
    </Body>
  </div>
)

export default Installer

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
playbook_ui-5.2.0.pre.alpha15 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.2.0.pre.alpha14 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.2.0.pre.alpha13 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.2.0.pre.alpha12 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.2.0.pre.alpha11 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.5.1.pre.alpha4 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.5.1.pre.alpha3 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.5.1.pre.alpha2 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.5.1.pre.alpha1 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.2.0.pre.alpha10 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.5.1 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.5.0 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.5.0.pre.alpha1 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.2.0.pre.alpha9 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.2.0.pre.alpha8 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.2.0.pre.alpha7 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.3.0.pre.alpha1 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.4.0 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.2.0.pre.alpha6 app/pb_kits/playbook/pb_installer/_installer.jsx
playbook_ui-5.2.0.pre.alpha5 app/pb_kits/playbook/pb_installer/_installer.jsx