/**
 * Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.
 */
import React from 'react';
import {Label as StyledLabel} from './style';

interface ILabel {
  text: string;
  htmlFor?: string;
  color?: string;
  icon?: React.JSX.Element;
  className?: string;
}

export const Label = ({text, htmlFor, color, icon, className}: ILabel): React.JSX.Element => (
  <StyledLabel className={className} htmlFor={htmlFor} color={color}>
    {text} {icon}
  </StyledLabel>
);
