/
TimurIsm
/
OpenEyes
Обзор
Документация
Войти
/
TimurIsm
/
OpenEyes
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
front/src/components/EmptyState.jsx
21 строка
737 B
TimurIsm
first_commit
16 май 2026, 15:34
16 май 2026, 15:34
4d3f198
Код
Авторство
О чём код?
import React from 'react'; const EmptyState = ({ title, message, icon }) => { const renderDefaultIcon = () => ( <svg className="w-16 h-16 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1} d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /> </svg> ); return ( <div className="text-center py-12"> <div className="text-gray-400 mb-4"> {icon || renderDefaultIcon()} </div> <h3 className="text-lg font-medium text-gray-900 mb-2">{title}</h3> <p className="text-gray-500">{message}</p> </div> ); }; export default EmptyState;