From 410d0dcad42dc1647ff9851218d9d824c7bad866 Mon Sep 17 00:00:00 2001 From: Tetiana Mohorian Date: Mon, 28 Apr 2025 23:02:17 +0000 Subject: [PATCH] =?UTF-8?q?P=C5=99idat=20sk1/frontend/src/components/Histo?= =?UTF-8?q?ria.jsx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sk1/frontend/src/components/Historia.jsx | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 sk1/frontend/src/components/Historia.jsx diff --git a/sk1/frontend/src/components/Historia.jsx b/sk1/frontend/src/components/Historia.jsx new file mode 100644 index 0000000..a1a6be6 --- /dev/null +++ b/sk1/frontend/src/components/Historia.jsx @@ -0,0 +1,35 @@ +import React from 'react'; + +const Historia = ({ history }) => { + if (!history || history.length === 0) { + return

Zatiaľ žiadna história

; + } + + return ( +
+
+ + + {history.map((item, index) => ( + + + + + + ))} + +
{item.text} + + {item.prediction} + + {item.timestamp}
+
+
+ ); +}; + +export default Historia;