import type { RepositoryRow } from "../../db/index.ts"; import { formatDate } from "../../lib/formatDate.ts"; import type { SessionUser } from "../../middleware/session.ts"; import { Layout } from "../layout.tsx"; import { Pagination, type PaginationInfo } from "../Pagination.tsx"; interface RepoListProps { user: SessionUser | null; repos: RepositoryRow[]; search?: string; sort: string; pagination: PaginationInfo; } export function RepoList({ user, repos, search, sort, pagination, }: RepoListProps) { return (
{repos.length === 0 ? (
{search ? (

No repositories match{" "} {search}.

) : (

No repositories yet.

)}
) : ( )}
); }