inital try for navigation messages trees

should be redone probably in a recursive way...
This commit is contained in:
jojopirker
2023-01-05 12:17:45 +01:00
parent 75e6e72486
commit d0bc720761
8 changed files with 220 additions and 1 deletions
@@ -3,7 +3,17 @@ import { boolean } from "boolean";
import NextLink from "next/link";
import { FlaggableElement } from "../FlaggableElement";
export function MessageTableEntry({ item, idx }) {
interface Message {
text: string;
id: string;
is_assistant: boolean;
}
interface MessageTableEntryProps {
item: Message;
idx: number;
}
export function MessageTableEntry(props: MessageTableEntryProps) {
const { item, idx } = props;
const bgColor = useColorModeValue(idx % 2 === 0 ? "bg-slate-800" : "bg-black", "bg-sky-900");
return (