mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
22 lines
420 B
TypeScript
22 lines
420 B
TypeScript
import * as React from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
const style = require('./style.scss');
|
|
|
|
interface IInfoProps {
|
|
text?: string;
|
|
children?: string;
|
|
level?: string;
|
|
}
|
|
export const Info: React.FunctionComponent<IInfoProps> = ({
|
|
text,
|
|
children,
|
|
level = 'normal',
|
|
}) => (
|
|
<div className={classNames(style.container, { [level]: true })}>
|
|
{
|
|
text || children || ''
|
|
}
|
|
</div>
|
|
);
|