/
TimurIsm
/
OpenEyes
Обзор
Документация
Войти
/
TimurIsm
/
OpenEyes
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
front/src/components/ImageView.jsx
19 строк
608 B
IsmTimur
Initial commit: added backend (Express) and frontend (React Vite)
19 июн 2025, 18:32
19 июн 2025, 18:32
6cf6155
Код
Авторство
О чём код?
import React from 'react'; const ImageView = ({ question, currentQuestionIndex, totalQuestions }) => { return ( <div className="relative w-full h-[600px] mb-6 overflow-hidden rounded-lg"> <div className="relative h-full"> {question.content && ( <img src={question.content} className="w-full h-full object-contain" alt={`Вопрос ${currentQuestionIndex + 1}`} /> )} </div> </div> ); }; export default ImageView;