remade frontend
This commit is contained in:
parent
02281120dc
commit
36d99b1e35
45 changed files with 1290 additions and 4979 deletions
|
|
@ -0,0 +1,20 @@
|
|||
import { Link } from "react-router-dom";
|
||||
import { getUrlForSearchResult, type SearchResult } from "../../../Lib/Search";
|
||||
import type { Server } from "../../../Lib/Servers";
|
||||
|
||||
interface ServerSearchResultProps {
|
||||
searchResult: SearchResult;
|
||||
server: Server;
|
||||
}
|
||||
|
||||
const ServerSearchResult = ({ searchResult, server }: ServerSearchResultProps) => {
|
||||
const resultUrl = getUrlForSearchResult(searchResult, server);
|
||||
|
||||
return (
|
||||
<Link to={resultUrl}>
|
||||
<h3>{searchResult.name}</h3>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
||||
export default ServerSearchResult;
|
||||
Loading…
Add table
Add a link
Reference in a new issue