/
dmitriysturov
/
workspaces_platform
Обзор
Документация
Войти
/
dmitriysturov
/
workspaces_platform
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
frontend/src/components/SectionError.tsx
23 строки
496 B
dmitriysturov
vkr
04 июн 2026, 22:24
04 июн 2026, 22:24
971dfdc
Код
Авторство
О чём код?
import { Button } from './ui/Button' type SectionErrorProps = { title: string message: string onRetry?: () => void } export function SectionError({ title, message, onRetry }: SectionErrorProps) { return ( <div className="section-error"> <div> <strong>{title}</strong> <p>{message}</p> </div> {onRetry && ( <Button type="button" variant="secondary" onClick={onRetry}> Повторить </Button> )} </div> ) }