import type { ReactNode } from 'react' import React, { type HTMLAttributes } from 'react' import { Icon, Link, type LinkElementType, type LinkProps } from '../..' export interface SearchHistoryTermProps extends HTMLAttributes { /** * ID to find this component in testing tools (e.g.: cypress, testing library, and jest). */ testId?: string /** * Defines the text displayed in history term item. */ value: string /** * Props for the link from term component. */ linkProps?: Partial> /** * A React component that will be rendered as an icon. */ icon?: ReactNode } const SearchHistoryTerm = ({ testId = 'fs-search-history-term', value, linkProps, icon = , }: SearchHistoryTermProps) => { return (
  • {icon} {value}
  • ) } export default SearchHistoryTerm