/*
 * File: index.jsx
 * Author: insane (luojie@doctorwork.com)
 * Last: insane (luojie@doctorwork.com>) 
 * Date: 2018-05-Su 01:38:11
 * Copyright 2018 - 2018 © Doctorwork
 */
import React from 'react';
const styles = require('./style.module.styl');
import classnames from 'classnames';

const Label = (props: any) => {
    return (
        <span
            className={classnames({
                [styles.label]: true,
                [styles.holder]: !props.value
            })}
        >
            {props.value ? props.value : props.placeholder}
        </span>
    );
};

export default Label;
