import React from "react";
import Block from "./../Block/";
import style from "./../../../style/";

export const Label: React.FC<React.HTMLAttributes<HTMLLabelElement>> = (
  props
) => {
  const { children, className } = props;
  const elementProps = Object.assign({}, props);
  delete elementProps.children;

  return <Block className={` ${style.label} ${className}`}>{children}</Block>;
};

Label.displayName = "Label";

export default Label;
