databag/net/web/src/logo/Logo.jsx
2022-08-20 23:10:22 -07:00

30 lines
1000 B
JavaScript

import avatar from 'images/avatar.png';
import appstore from 'images/appstore.png';
import solution from 'images/solution.png';
import team from 'images/team.png';
export function Logo({ url, width, height, radius, img }) {
return (
<div style={{ borderRadius: radius, overflow: 'hidden' }}>
{ img === 'team' && (
<img src={team} alt="direct logo" width={width} height={height} />
)}
{ img === 'avatar' && (
<img src={avatar} alt="anonymous logo" width={width} height={height} />
)}
{ img === 'appstore' && (
<img src={appstore} alt="group logo" width={width} height={height} />
)}
{ img === 'solution' && (
<img src={solution} alt="notes logo" width={width} height={height} />
)}
{ url && !img && (
<img src={url} alt="logo" width={width} height={height} />
)}
{ !url && !img && (
<img src={avatar} alt="default logo" width={width} height={height} />
)}
</div>
);
}