/
aaronair
/
Test_task_rt_solution
Обзор
Документация
Войти
/
aaronair
/
Test_task_rt_solution
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/components/EmptyState.tsx
31 строка
919 B
Ilikedrinkpivo
first_commit
28 май 2026, 14:51
28 май 2026, 14:51
b4498fc
Код
Авторство
О чём код?
interface Props { title: string; description?: string; action?: React.ReactNode; } export function EmptyState({ title, description, action }: Props) { return ( <div className="card p-10 text-center"> <div className="mx-auto mb-4 h-12 w-12 rounded-full bg-primary-50 flex items-center justify-center text-primary-600"> <svg viewBox="0 0 24 24" className="h-6 w-6" fill="none" stroke="currentColor" strokeWidth={1.8} strokeLinecap="round" strokeLinejoin="round" > <circle cx="11" cy="11" r="7" /> <path d="m21 21-4.3-4.3" /> </svg> </div> <h3 className="text-lg font-semibold text-ink-900">{title}</h3> {description && ( <p className="mt-1 text-sm text-ink-500">{description}</p> )} {action && <div className="mt-5">{action}</div>} </div> ); }