"use client"; import React from "react"; import { FaBell, FaInfoCircle } from "react-icons/fa"; import TabBar from "../components/TabBar"; const notifications = [ { id: 1, title: "Обновление приложения", date: "15.12.2025", type: "update", text: "Мы улучшили стабильность работы и ускорили загрузку заявок.", }, { id: 2, title: "Новые возможности для волонтёров", date: "10.12.2025", type: "feature", text: "Теперь можно оставлять отзывы о заказчиках после выполнения заявок.", }, { id: 3, title: "Советы по безопасности", date: "05.12.2025", type: "info", text: "Всегда уточняйте детали заявки и не передавайте данные третьим лицам.", }, ]; const typeConfig = { update: { label: "Обновление", color: "#71A5E9" }, feature: { label: "Новая функция", color: "#94E067" }, info: { label: "Информация", color: "#E9D171" }, }; const NotificationsPage = () => { return (
{/* Header */}

Уведомления

{/* Список уведомлений */}
{notifications.length === 0 && (

Пока нет уведомлений

)} {notifications.map((n) => { const cfg = typeConfig[n.type] || { label: "Уведомление", color: "#E2E2E2", }; return (
{cfg.label}

{n.date}

{n.title}

{n.text}

); })}
); }; export default NotificationsPage;