openreplay/frontend/app/components/Header/AlertItem.js
Andrey Babushkin fd5c0c9747
Add lokalisation (#3092)
* applied eslint

* add locales and lint the project

* removed error boundary

* updated locales

* fix min files

* fix locales
2025-03-06 17:43:15 +01:00

18 lines
554 B
JavaScript

import React from 'react';
import { Icon } from 'UI';
import styles from './alertItem.module.css';
function AlertItem({ alert, onDelete, onEdit }) {
return (
<div className={styles.alertItem}>
<div className={styles.title}>{alert.name}</div>
<div className={styles.period}>{alert.period}</div>
<div className={styles.actions}>
<Icon name="edit" size="16" onClick={() => onEdit(alert)} />
<Icon name="trash" size="16" onClick={() => onDelete(alert.id)} />
</div>
</div>
);
}
export default AlertItem;