2018-03-26 23:32:43 +02:00
|
|
|
// @flow
|
2020-09-02 22:08:37 +02:00
|
|
|
import * as ICONS from 'constants/icons';
|
2018-03-26 23:32:43 +02:00
|
|
|
import React from 'react';
|
2020-09-02 22:08:37 +02:00
|
|
|
import classnames from 'classnames';
|
|
|
|
import Icon from 'component/common/icon';
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2020-09-02 22:08:37 +02:00
|
|
|
type Props = {
|
|
|
|
withText?: boolean,
|
|
|
|
isTitle?: boolean,
|
|
|
|
size?: number,
|
|
|
|
prefix?: string | number,
|
2020-09-10 17:54:41 +02:00
|
|
|
postfix?: string | number,
|
2020-09-02 22:08:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
const LbcSymbol = (props: Props) => {
|
2020-09-10 17:54:41 +02:00
|
|
|
const { prefix, postfix, size, isTitle = false } = props;
|
2020-09-02 22:08:37 +02:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
{prefix}
|
|
|
|
<Icon
|
|
|
|
icon={ICONS.LBC}
|
|
|
|
size={isTitle ? 22 : size}
|
2020-09-10 17:54:41 +02:00
|
|
|
className={classnames('icon__lbc', {
|
|
|
|
'icon__lbc--before-text': prefix,
|
|
|
|
'icon__lbc--after-text': postfix,
|
|
|
|
'icon__lbc--title': isTitle,
|
|
|
|
})}
|
2020-09-02 22:08:37 +02:00
|
|
|
/>
|
2020-09-10 17:54:41 +02:00
|
|
|
{postfix}
|
2020-09-02 22:08:37 +02:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
2018-03-26 23:32:43 +02:00
|
|
|
|
|
|
|
export default LbcSymbol;
|