import * as React from "react" import type { Query } from "../types/Query" import { CaptionImage } from "../components/CaptionImage" import { Container } from "../components/Container" import { FadeIn, FadeInStagger } from "../components/FadeIn" import { FallbackMessage } from "../components/FallbackMessage" import { FilterScroll } from "../components/FilterScroll" import { Loading } from "../components/Loading" const FIDE_RATING_MIN = 1500 const FIDE_RATING_MAX = 3200 interface Coach { id: string imageUrl: string name: string title: string slug: string } const defaultQuery: Query = { fideRating: [FIDE_RATING_MIN, FIDE_RATING_MAX], } export function Search() { const [query, setQuery] = React.useState(defaultQuery) const [loading, setLoading] = React.useState(true) const [coaches, setCoaches] = React.useState([]) return ( {}} /> {coaches.length > 0 ? ( {coaches.map((coach, index) => ( ))} ) : ( )} ) }