import { FC } from 'react'; import { Alert, Typography } from '@mui/material'; import { Dialogue } from 'component/common/Dialogue/Dialogue'; interface ISuggestChangesDialogueProps { isOpen: boolean; onConfirm: () => void; onClose: () => void; featureName?: string; environment?: string; enabled?: boolean; } export const SuggestChangesDialogue: FC = ({ isOpen, onConfirm, onClose, enabled, featureName, environment, }) => ( Suggest changes is enabled for {environment}. Your changes needs to be approved before they will be live. All the changes you do now will be added into a draft that you can submit for review. Suggested changes: {enabled ? 'Disable' : 'Enable'} feature toggle{' '} {featureName} in {environment} );