import React from 'react'; const PlatformIcon = ({ img = null, svg: SvgComponent = null, text="", width = '20px', height = '20px' }) => { return ( img != null ? <> {text}  : SvgComponent != null ? <> {text}  : null ); }; export default PlatformIcon;