import type { FormEvent } from "react"; import { AlertCircle, Search } from "lucide-react"; import { getFieldError, getFormError } from "@/client/lib/forms"; import type { DomainOverviewControlsForm } from "@/client/features/domain/DomainOverviewPage"; import { toSortMode } from "@/client/features/domain/utils"; import type { DomainSortMode } from "@/client/features/domain/types"; import { LABS_LOCATION_OPTIONS } from "@/client/features/keywords/locations"; import { LocationSelect } from "@/client/components/LocationSelect"; import { ResearchScopeSelect } from "@/client/components/ResearchScopeSelect"; import type { ResearchScope } from "@/shared/researchScope"; type Props = { controlsForm: DomainOverviewControlsForm; isLoading: boolean; onSubmit: (event: FormEvent) => void; onDomainChange: (domain: string) => void; onScopeChange: (scope: ResearchScope) => void; onSortChange: (sort: DomainSortMode) => void; onLocationChange: (locationCode: number) => void; }; export function DomainSearchCard({ controlsForm, isLoading, onSubmit, onDomainChange, onScopeChange, onSortChange, onLocationChange, }: Props) { return (
{domainError}
) : null; }}