freshter-logs/components/Msg.tsx
2023-04-28 19:48:34 -04:00

20 lines
437 B
TypeScript

import { Conversation, Database } from "types";
import { msg_style } from "style";
import RenderMsg from "components/RenderMsg.tsx";
export default function Msg({
message,
db,
conversation,
...props
}: {
message: string;
db: Database;
conversation?: Conversation;
}) {
const msg = db.messages[message];
return (
<RenderMsg msg={msg} db={db} conversation={conversation} {...props} />
);
}