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 DefaultSwitchControlProps< T extends FieldValues, P extends FieldPath = FieldPath, > = SwitchProps & UseControllerProps & { name: string; label?: string; labelIcon?: string; stringify?: boolean; }; export const DefaultSwitchControl = < T extends FieldValues, P extends FieldPath = FieldPath, >( props: DefaultSwitchControlProps, ) => { const { t } = useTranslation("common"); return ; };