2024-11-18 16:33:44 +03:00
|
|
|
import React from 'react';
|
|
|
|
import styles from './devpopup.module.css';
|
|
|
|
import { Button } from '../../Button';
|
|
|
|
import { ETextStyles } from '../../texts';
|
|
|
|
|
|
|
|
interface IDevPopup {
|
|
|
|
setClose(a: boolean): void
|
2024-12-12 15:21:19 +03:00
|
|
|
title: string,
|
|
|
|
text: string,
|
2024-11-18 16:33:44 +03:00
|
|
|
}
|
|
|
|
|
2024-12-12 15:21:19 +03:00
|
|
|
export function DevPopup({ setClose, title, text }: IDevPopup) {
|
2024-11-18 16:33:44 +03:00
|
|
|
return (
|
|
|
|
<div className={styles.container}>
|
|
|
|
<div className={styles.iconContainer}>
|
2024-12-12 15:21:19 +03:00
|
|
|
<div className={styles.icon} style={{backgroundImage: "url('assets/programming.gif')"}}></div>
|
2024-11-18 16:33:44 +03:00
|
|
|
</div>
|
2024-12-12 15:21:19 +03:00
|
|
|
<h2 className={styles.title} style={ETextStyles.RwSb24100}>{title}</h2>
|
|
|
|
<p className={styles.text} style={ETextStyles.RwSb14120}>{text}</p>
|
|
|
|
<Button text='Принято' onClick={() => setClose(true)}/>
|
2024-11-18 16:33:44 +03:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|