import { useState } from 'react'; import type { TypeaheadOption } from '~/ui'; import { Button } from '~/ui'; import { useToast } from '~/ui'; import { HorizontalDivider } from '~/ui'; import CitiesTypeahead from '~/components/shared/CitiesTypeahead'; import CompaniesTypeahead from '~/components/shared/CompaniesTypeahead'; import CountriesTypeahead from '~/components/shared/CountriesTypeahead'; import JobTitlesTypeahead from '~/components/shared/JobTitlesTypeahead'; import type { Month, MonthYearOptional, } from '~/components/shared/MonthYearPicker'; import MonthYearPicker from '~/components/shared/MonthYearPicker'; export default function HomePage() { const [selectedCompany, setSelectedCompany] = useState(null); const [selectedCountry, setSelectedCountry] = useState(null); const [selectedCity, setSelectedCity] = useState( null, ); const [selectedJobTitle, setSelectedJobTitle] = useState(null); const [monthYear, setMonthYear] = useState({ month: (new Date().getMonth() + 1) as Month, year: new Date().getFullYear(), }); const { showToast } = useToast(); return (

Test Page

setSelectedCompany(option)} />
{JSON.stringify(selectedCompany, null, 2)}
setSelectedJobTitle(option)} />
{JSON.stringify(selectedJobTitle, null, 2)}
setSelectedCountry(option)} />
{JSON.stringify(selectedCountry, null, 2)}
setSelectedCity(option)} />
{JSON.stringify(selectedCity, null, 2)}
); }