Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
// @flow
import React from 'react';
import { getDataAttrs } from '../../dataUtils';
import type { Data } from '../../types';
import style from './style.scss';
type Props = {|
icon: string,
color: string,
data?: Data,
size?: number,
const Icon = ({ icon, color, data }: Props) => {
return (
style={{ fill: color }}
dangerouslySetInnerHTML={{ __html: icon }}
Icon.defaultProps = {
color: '#000',
size: 16,
Icon.displayName = 'Plasma@Icon';
export default Icon;