import React from "react";

interface ISearchResultItem {
  href?: string;
  onClick?: () => void;
}

const SearchResultItem: React.FC<ISearchResultItem> = props => {
  return (
    <a className="dropdown-item" href={props.href} onClick={props.onClick}>
      {props.children}
    </a>
  );
};

SearchResultItem.displayName = "SearchResultItem";
SearchResultItem.defaultProps = {};
export default SearchResultItem;
