// @flow import * as ICONS from 'constants/icons'; import React from 'react'; import { SEARCH_OPTIONS } from 'lbry-redux'; import { Form, FormField } from 'component/common/form'; import posed from 'react-pose'; import Button from 'component/button'; const ExpandableOptions = posed.div({ hide: { height: 0, opacity: 0 }, show: { height: 300, opacity: 1 }, }); type Props = { setSearchOption: (string, boolean | string | number) => void, options: {}, expanded: boolean, toggleSearchExpanded: () => void, }; const SearchOptions = (props: Props) => { const { options, setSearchOption, expanded, toggleSearchExpanded } = props; const resultCount = options[SEARCH_OPTIONS.RESULT_COUNT]; return (