import React from "react"; import { useTranslation } from "react-i18next"; import { Controller, useForm } from "react-hook-form"; import { Dropdown, DropdownToggle, Form, FormGroup, Select, SelectOption, SelectVariant, TextInput, } from "@patternfly/react-core"; import type PolicyProviderRepresentation from "@keycloak/keycloak-admin-client/lib/defs/policyProviderRepresentation"; import useToggle from "../../utils/useToggle"; import "./search-dropdown.css"; type SearchDropdownProps = { types?: PolicyProviderRepresentation[]; }; export const SearchDropdown = ({ types }: SearchDropdownProps) => { const { t } = useTranslation("clients"); const { register, control } = useForm(); const [open, toggle] = useToggle(); const [typeOpen, toggleType] = useToggle(); return ( {t("searchForPermission")} } isOpen={open} >
( )} />
); };