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