text: import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
  import { faCheck } from '@fortawesome/free-solid-svg-icons';
  const DropElem = ({ setState, coin, action, state }) => {
    return (
      <div className="dropDownCoins" onClick={() => setState(action, coin)}>
        {coin === state ? (
          <fieldset>
            <label htmlFor="cointype">
              <span className="coin" style={{ fontWeight: 'bold' }}>
                {coin}
              </span>
              <FontAwesomeIcon
                icon={faCheck}
                className="iconsSymbol checkColor"
              />
            </label>
            <input
              className="price-radio"
              type="radio"
              defaultChecked
              name="coin"
              value={coin}
              id="cointype"
            />
          </fieldset>
        ) : (
          <fieldset>
            <label>
              <span className="coin">{coin}</span>
              <input
                className="price-radio"
                type="radio"
                name="coin"
                value={coin}
              />
            </label>
          </fieldset>
        )}
      </div>
    );
  };
  
  export default DropElem;
  