import { SourceAttribution } from "~/components/SourceAttribution"; import { formatWhen } from "~/lib/format"; import styles from "~/routes/[handle].module.css"; interface AnswerBlockProps { content: string; createdAt: Date | string; sourceType?: string | null; sourceUri?: string | null; sourceData?: string | null; } export function AnswerBlock(props: AnswerBlockProps) { return (
Answer
{props.content}
{formatWhen(props.createdAt)}
); } export default AnswerBlock;