actual/packages/loot-design/src/components/Text.js
Tom French dc53a74459
Separate external, monorepo and internal imports (#237)
* style: enforce ordering of imports

* style: sort imports in loot-core

* style: sort imports in desktop-client

* style: sort imports in loot-design

* style: manual fixes
2022-09-02 12:43:37 +01:00

17 lines
379 B
JavaScript

import React from 'react';
import { css } from 'glamor';
function Text(props) {
// Pull `numberOfLines` off since it's only used in React Native
const { numberOfLines, style, innerRef, ...restProps } = props;
return (
<span
{...restProps}
ref={innerRef}
className={`${props.className || ''} ${css(props.style)}`}
/>
);
}
export default Text;