import { FormGroup, Switch, TextInput } from "@patternfly/react-core";
import { useTranslation } from "react-i18next";
import React from "react";
import { HelpItem } from "../../components/help-enabler/HelpItem";
import { UseFormMethods, Controller } from "react-hook-form";
import { FormAccess } from "../../components/form-access/FormAccess";
import { WizardSectionHeader } from "../../components/wizard-section-header/WizardSectionHeader";
export type LdapSettingsSynchronizationProps = {
form: UseFormMethods;
showSectionHeading?: boolean;
showSectionDescription?: boolean;
};
export const LdapSettingsSynchronization = ({
form,
showSectionHeading = false,
showSectionDescription = false,
}: LdapSettingsSynchronizationProps) => {
const { t } = useTranslation("user-federation");
const helpText = useTranslation("user-federation-help").t;
return (
<>
{showSectionHeading && (
)}
}
fieldId="kc-import-users"
>
(
onChange([`${value}`])}
isChecked={value[0] === "true"}
isDisabled={false}
/>
)}
>
}
fieldId="kc-batch-size"
>
{/* Enter -1 to switch off, otherwise enter value */}
}
fieldId="kc-full-sync-period"
>
{/* Enter -1 to switch off, otherwise enter value */}
}
fieldId="kc-changed-users-sync-period"
hasNoPaddingTop
>
>
);
};