qubit 1.0.0-beta.2

Seamless RPC for Rust & TypeScript
Documentation
1
2
3
4
5
6
7
8
9
10
import { Avatar } from "./Avatar";

export const Message = ({ emoji, message, you }: { emoji: string; message: string; you?: boolean }) => {
  return (
    <div className={`message ${you ? "you" : ""}`}>
      <Avatar emoji={emoji} />
      <span>{message}</span>
    </div>
  );
};