import type { FC, ReactNode } from 'react'; import { Box } from '@mui/material'; import { Badge } from 'component/common/Badge/Badge'; import { ChangeItemWrapper as LegacyChangeItemWrapper } from './LegacyStrategyChange.tsx'; import { Action, ChangeItemInfo, ChangeItemWrapper } from './Change.styles'; interface IToggleStatusChange { enabled: boolean; actions?: ReactNode; } /** * @deprecated use ToggleStatusChange instead; remove with flag crDiffView */ export const LegacyToggleStatusChange: FC = ({ enabled, actions, }) => { return ( New status ({ marginLeft: theme.spacing(1) })} color={enabled ? 'success' : 'error'} > {enabled ? ' Enabled' : 'Disabled'} {actions} ); }; export const ToggleStatusChange: FC = ({ enabled, actions, }) => { return ( New status {enabled ? ' Enabled' : 'Disabled'} {actions} ); };