This repository has been archived on 2025-09-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
repertory-ui/src/components/UI/Text/Text.js
2021-03-09 10:56:15 -06:00

29 lines
537 B
JavaScript

import React from 'react';
import './Text.css';
const Text = props => {
const styleList = [];
styleList.push('Text');
if (props.type) {
styleList.push('Text' + props.type);
}
let style = {...props.style};
if (props.textAlign) {
style['textAlign'] = props.textAlign.toLowerCase();
}
const text = (
<div
className={styleList.join(' ')}
style={style}>{props.text}
</div>);
return props.noOwner ? text : (
<div className={'TextOwner'}>
{text}
</div>);
};
export default Text;