import { useTranslation } from "react-i18next"; import { ActionGroup, ActionGroupProps, Button } from "@patternfly/react-core"; import { PropsWithChildren } from "react"; import style from "./fixed-buttons.module.css"; type FixedButtonGroupProps = ActionGroupProps & { name: string; save?: () => void; reset?: () => void; isSubmit?: boolean; isActive?: boolean; }; export const FixedButtonsGroup = ({ name, save, reset, isSubmit = false, isActive = true, children, ...rest }: PropsWithChildren) => { const { t } = useTranslation(); return ( {(save || isSubmit) && ( )} {reset && ( )} {children} ); };