import { Trans } from "@lingui/react/macro"; import type { SearchHit } from "@rakazo/contracts"; export function SpaceSearchResults({ hits, loading, onSelect, }: { hits: SearchHit[]; loading: boolean; onSelect: (hit: SearchHit) => void; }) { if (loading) { return (
Searching…
); } if (!hits.length) { return (
No results
); } return (
{hits.map((hit) => ( ))}
); }