import React from 'react';

import styles from './style.less';

export interface LabelProps {
  className?: string;
  name: string;
}

const Label: React.FC<LabelProps> = ({
  className = '',
  name,
}) => (
    <div className={`${styles.label} ${className}`}>
      <div className="indicator" />
      <span className="name">{name}</span>
    </div>
  );

export default Label;
