import React from 'react' import { useNavigate } from '@tanstack/react-router' import { EmptyState } from '../../primitives' import type { SearchRow } from '../../api/adapters' import { highlightSnippet } from './highlightSnippet' interface SearchTableProps { rows: SearchRow[] hasMore: boolean loadingMore: boolean onLoadMore: () => void } const COLS = '1fr 1fr 2fr 60px' export function SearchTable({ rows, hasMore, loadingMore, onLoadMore }: SearchTableProps): React.JSX.Element { const navigate = useNavigate() if (rows.length === 0) { return (