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((match) => ( {match.professorId !== undefined ? match.professorName : match.subjectName} {match.professorId !== undefined ? match.faculty.facultyName : match.studyProgramme.faculty.facultyName} ))}
); } export default SearchResults;