import * as React from 'react'; import { bdlBoxBlue, bdlPurpleRain } from '../../styles/variables'; import AccessibleSVG from '../accessible-svg'; import { Icon } from '../iconTypes'; interface IconMetadataColoredProps extends Icon { /** A string describing the icon's type */ type?: 'cascade' | 'default'; } const IconMetadataColored = ({ className = '', color, title, type, width = 16, height = 16, }: IconMetadataColoredProps) => { let fill; if (color) { fill = color; } else if (type === 'cascade') { fill = bdlPurpleRain; } else if (type === 'default') { fill = bdlBoxBlue; } else { fill = bdlBoxBlue; } return ( ); }; export default IconMetadataColored;