2021-09-15 19:57:22 +02:00
|
|
|
import React from 'react';
|
2017-08-01 17:29:29 +01:00
|
|
|
|
2022-03-02 17:14:33 +01:00
|
|
|
import WarningSvg from '../../../../res/img/warning.svg';
|
|
|
|
|
|
2021-09-15 19:57:22 +02:00
|
|
|
interface IProps {
|
|
|
|
|
errorMsg?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const AppWarning: React.FC<IProps> = (props) => {
|
2017-08-01 17:29:29 +01:00
|
|
|
return (
|
|
|
|
|
<div className='mx_AppPermissionWarning'>
|
|
|
|
|
<div className='mx_AppPermissionWarningImage'>
|
2022-03-02 17:14:33 +01:00
|
|
|
<img src={WarningSvg} alt='' />
|
2017-08-01 17:29:29 +01:00
|
|
|
</div>
|
|
|
|
|
<div className='mx_AppPermissionWarningText'>
|
2021-09-15 19:57:22 +02:00
|
|
|
<span className='mx_AppPermissionWarningTextLabel'>{ props.errorMsg || "Error" }</span>
|
2017-08-01 17:29:29 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
2017-08-01 21:00:18 +01:00
|
|
|
};
|
2017-08-01 17:29:29 +01:00
|
|
|
|
|
|
|
|
export default AppWarning;
|