Sha256: 7394972a6cb2a87ff99fcf9c4e8c2c27529ac7c493c99aa215615abc5a888b16
Contents?: true
Size: 629 Bytes
Versions: 6
Compression:
Stored size: 629 Bytes
Contents
/* @flow */ /* eslint-disable react/no-multi-comp, flowtype/space-before-type-colon */ import React from 'react' import {Badge} from '../' type HashtagProps = { className?: String, data?: String, id?: String, text?: String, type: 'default' | 'home' | 'project', url?: String, } const HashType = { "home": "H#", "project": "P#", "default": "#" } const Hashtag = ({ className, data, id, text, type, url } : HashtagProps) => ( <div className={`pb_hashtag_kit_${type}`}> <a href={url}> <Badge variant="primary" text={HashType[type] + text}></Badge> </a> </div> ) export default Hashtag
Version data entries
6 entries across 6 versions & 1 rubygems