Preparing search index...

    Props for the SearchBarResults component

    type SearchBarResultsProps = {
        testId: string;
        filteredTitles: string[];
        setSearchBarClicked: React.Dispatch<React.SetStateAction<boolean>>;
        updateSearchString: (newSearchString: string) => void;
    }
    Index

    Properties

    testId: string

    Unique identifier for testing and accessibility

    filteredTitles: string[]

    Array of filtered result titles to display

    setSearchBarClicked: React.Dispatch<React.SetStateAction<boolean>>

    State setter for managing search bar focus/active state

    updateSearchString: (newSearchString: string) => void

    Callback fired when a search result is selected