Sha256: 803bd563b1bfe09678aff568174c2d35cf363a97e07e8ffc440b687a977b05fb
Contents?: true
Size: 606 Bytes
Versions: 23
Compression:
Stored size: 606 Bytes
Contents
import React from 'react'; import { Tooltip } from '@patternfly/react-core'; import { BundleIcon, MiddlewareIcon, BoxIcon, CodeBranchIcon, FanIcon, TenantIcon } from '@patternfly/react-icons'; import PropTypes from 'prop-types'; const RepoIcon = ({ type }) => { const iconMap = { yum: BundleIcon, docker: MiddlewareIcon, ostree: CodeBranchIcon, file: TenantIcon, deb: FanIcon, }; const Icon = iconMap[type] || BoxIcon; return <Tooltip content={<div>{type}</div>}><Icon /></Tooltip>; }; RepoIcon.propTypes = { type: PropTypes.string.isRequired, }; export default RepoIcon;
Version data entries
23 entries across 23 versions & 1 rubygems