5bfe2a0331
* feat: add file manager module - Complete file manager implementation with UI/UX - Add drive management functionality - Add file upload/download with progress tracking - Add stamp integration and handling - Add bulk operations and context menus Co-authored-by: Roland Seres <roland.seres90@gmail.com> Co-authored-by: nidishk <nidishkrishnan45@gmail.com>
22 lines
599 B
TypeScript
22 lines
599 B
TypeScript
import { ReactElement } from 'react'
|
|
import './ErrorModal.scss'
|
|
import { Button } from '../Button/Button'
|
|
|
|
interface ErrorModalProps {
|
|
label: string
|
|
onClick: () => void
|
|
}
|
|
|
|
export function ErrorModal({ label, onClick }: ErrorModalProps): ReactElement {
|
|
return (
|
|
<div className="fm-error-modal-container">
|
|
<div className="fm-modal-window">
|
|
<div className="fm-error-modal-message">{label}</div>
|
|
<div className="fm-error-modal-button-container">
|
|
<Button variant="primary" label="OK" width={100} onClick={onClick} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|