13 lines
244 B
TypeScript
13 lines
244 B
TypeScript
import { memo } from "react";
|
|
import { Text } from "./Text";
|
|
|
|
type UserLine = {
|
|
kind: "user";
|
|
id: string;
|
|
text: string;
|
|
};
|
|
|
|
export const UserMessage = memo(({ line }: { line: UserLine }) => {
|
|
return <Text>{`> ${line.text}`}</Text>;
|
|
});
|