import { AdjustmentsHorizontalIcon, MagnifyingGlassIcon, } from '@heroicons/react/24/outline'; import { Button, Select, TextInput } from '@tih/ui'; export type SortOption = { label: string; value: string; }; export type QuestionSearchBarProps> = { onFilterOptionsToggle: () => void; onSortChange?: (sortValue: SortOptions[number]['value']) => void; sortOptions: SortOptions; sortValue: SortOptions[number]['value']; }; export default function QuestionSearchBar< SortOptions extends Array, >({ onSortChange, sortOptions, sortValue, onFilterOptionsToggle, }: QuestionSearchBarProps) { return (
Sort by: