feat: add Railway-ready Jyotish chat product

This commit is contained in:
Jesse_Chen
2026-07-15 22:23:17 +08:00
parent 4a268c75f2
commit 4aa0105fa4
77 changed files with 15439 additions and 80 deletions
@@ -0,0 +1,29 @@
import ReactMarkdown, { type Components } from "react-markdown";
import remarkGfm from "remark-gfm";
const markdownComponents: Components = {
a: ({ children, href, ...props }) => (
<a {...props} href={href} rel="noreferrer" target="_blank">
{children}
</a>
),
table: ({ children }) => (
<div className="markdown-table">
<table>{children}</table>
</div>
),
};
export function ChatMessageContent({ text }: { text: string }) {
return (
<div className="message-markdown">
<ReactMarkdown
components={markdownComponents}
remarkPlugins={[remarkGfm]}
skipHtml
>
{text}
</ReactMarkdown>
</div>
);
}