1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00
vault-frontend/src/components/input/Info/index.tsx
2020-11-06 13:05:43 +07:00

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>
);