import React from "react"; import { Text } from "../text"; import { LabelProps } from "./Label.types"; const Label = (props: LabelProps) => { const { isRequired = false, error = false, title, truncate = false, isInline = false, htmlFor, text, display, className, id, style, children, } = props; const errorProp = error ? { color: "#c30" } : {}; return ( {text} {isRequired && " *"} {children} ); }; export { Label };