This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
image-juicer/app/components/Photon/Icon.js

17 lines
330 B
JavaScript

import React from 'react';
import { prefixClasses } from '../../utils'
/**
* Icon component
*
* @param {object} props
* @param {string} props.type Type of icon, eg. mail,heart,star,etc.
*/
export function Icon(props) {
return (
<span className={`icon ${prefixClasses('icon', props.type)}`} />
);
}
export default Icon;