import React, { ReactElement } from 'react'; import { WarningRounded, CheckCircleRounded, InfoRounded } from '@mui/icons-material'; import * as S from './StatusModal.style'; import { Button } from '../Button'; import { OnAction } from '@/types'; interface ModalStatusProps { title: string; text: string | ReactElement; type: 'success' | 'info' | 'warning'; actions: OnAction[]; w?: string; } export const ModalStatus = (props: ModalStatusProps) => { const { title, text, type, actions, w } = props; const iconBgColor = { warning: '#FFDB9F', info: '#D9FCFE', success: '#C9F5CB', }; return ( {type === 'warning' && } {type === 'info' && } {type === 'success' && } {title} {text} {actions.map((action, key) => { return ( ); })} ); };