Style setup page
Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
This commit is contained in:
5 files changed
+73
-13
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
|
||||
const PlatformIcon = ({ img = null, svg: SvgComponent = null, text="", width = '20px', height = '20px' }) => {
|
||||
return (
|
||||
img != null ?
|
||||
<>
|
||||
<img src={img} style={{ width, height, position: 'relative', top: '3px', right: '3px' }}/>
|
||||
{text}
|
||||
</> :
|
||||
SvgComponent != null ?
|
||||
<>
|
||||
<SvgComponent style={{ width, height, position: 'relative', top: '3px', right: '3px' }}/>
|
||||
{text}
|
||||
</> : null
|
||||
);
|
||||
};
|
||||
|
||||
export default PlatformIcon;
|
||||
Reference in new issue
Block a user