import { SwitchProps } from "@patternfly/react-core"; import { FieldPath, FieldValues, UseControllerProps } from "react-hook-form"; import { useTranslation } from "react-i18next"; import { SwitchControl } from "ui-shared"; type AdminSwitchControlProps< T extends FieldValues, P extends FieldPath = FieldPath > = SwitchProps & UseControllerProps & { name: string; label?: string; labelIcon?: string; }; export const DefaultSwitchControl = < T extends FieldValues, P extends FieldPath = FieldPath >( props: AdminSwitchControlProps ) => { const { t } = useTranslation("common"); return ; };