import React from "react"; import { useLocation } from "react-router"; import { SearchResultText, SearchResultsWrapper, SearchResult, SearchResultLink, } from "../Components/Styled/Search.style"; function SearchResults() { const location = useLocation(); return (

Резултати од пребарувањето:

{location.state.map((professor) => ( {professor.professorName} {professor.faculty.facultyName} ))}
); } export default SearchResults;