<commit_before>import * as React from "react";
import PropTypes from "prop-types";
import Image, { badgeSizes } from "@crave/farmblocks-image";
import Text from "@crave/farmblocks-text";
import Card from "@crave/farmblocks-card";
import styled from "styled-components";

import helperSrc from "../constants/helperIcon";

const CardWrapper = styled(Card)`
  margin-top: 16px;
  display: flex;

  .centered {
    align-self: center;
    margin-left: 10px;
  }
`;

const EmptyCard = ({ noResultsMessage }) => (
  <CardWrapper type="NEUTRAL">
    <Image src={helperSrc} badge size={badgeSizes.MEDIUM} />
    <Text className="centered">{noResultsMessage}</Text>
  </CardWrapper>
);

EmptyCard.defaultProps = {
  noResultsMessage: "No results found"
};

EmptyCard.propTypes = {
  noResultsMessage: PropTypes.string
};

CardWrapper.displayName = "EmptyCard";

export default EmptyCard;
<commit_msg>fix(select): make EmptyCard a stateful component<commit_after>import * as React from "react";
import PropTypes from "prop-types";
import Image, { badgeSizes } from "@crave/farmblocks-image";
import Text from "@crave/farmblocks-text";
import Card from "@crave/farmblocks-card";
import styled from "styled-components";

import helperSrc from "../constants/helperIcon";

const CardWrapper = styled(Card)`
  margin-top: 16px;
  display: flex;

  .centered {
    align-self: center;
    margin-left: 10px;
  }
`;

class EmptyCard extends React.Component {
  render() {
    return (
      <CardWrapper type="NEUTRAL">
        <Image src={helperSrc} badge size={badgeSizes.MEDIUM} />
        <Text className="centered">{this.props.noResultsMessage}</Text>
      </CardWrapper>
    );
  }
}

EmptyCard.defaultProps = {
  noResultsMessage: "No results found"
};

EmptyCard.propTypes = {
  noResultsMessage: PropTypes.string
};

CardWrapper.displayName = "EmptyCard";

export default EmptyCard;

{'fraction_non_alphanumeric': 0.13272921108742003, 'fraction_numerical': 0.0042643923240938165, 'mean_word_length': 4.4563953488372094, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7653188', 'n_tokens_mistral': 606, 'n_tokens_neox': 592, 'n_words': 142}