The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/components/basic/Icon.js

13 lines
308 B

import React from 'react';
export const Icon = ({ icon, block = '', baseUrl = '', className }) => <svg
className={[
'rc-icon',
block,
block && icon && `${ block }--${ icon }`,
className,
].filter(Boolean).join(' ')}
aria-hidden='true'
>
<use xlinkHref={`${ baseUrl }#icon-${ icon }`} />
</svg>;