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;