import {t} from 'sentry/locale'; import {Rule} from '../types'; import ModalManager from './modalManager'; type ModalManagerProps = ModalManager['props']; type Props = Omit & { rule: Rule; }; function Edit({savedRules, rule, ...props}: Props) { const handleGetNewRules = ( values: Parameters[0] ) => { const updatedRule = {...values, id: rule.id}; const newRules = savedRules.map(savedRule => { if (savedRule.id === updatedRule.id) { return updatedRule; } return savedRule; }) as Array; return newRules; }; return ( ); } export default Edit;