/* * @ts-nocheck * Preventing TS checks with files presented in the video for a better presentation. */ import { Markdown } from './Markdown'; import type { Message } from '~/lib/persistence/message'; interface MessageContentsProps { message: Message; } export function MessageContents({ message }: MessageContentsProps) { switch (message.type) { case 'text': return (
{message.content}
); case 'image': return (
); } }