Base layout
This commit is contained in:
parent
874bd18f11
commit
f1e90c4dd2
34 changed files with 2966 additions and 2725 deletions
23
src/components/Message/Message.tsx
Normal file
23
src/components/Message/Message.tsx
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import type { Component } from "solid-js";
|
||||
import { IMessageProps } from "./types";
|
||||
|
||||
const Message: Component<IMessageProps> = (props: IMessageProps) => {
|
||||
return (
|
||||
<li class="list-row hover:bg-stone-700">
|
||||
<div
|
||||
class="avatar cursor-pointer"
|
||||
onClick={() => props.onProfileClick(props.userId)}
|
||||
>
|
||||
<div class="w-10 rounded-full">
|
||||
<img src={props.profileImage} />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div>{props.username}</div>
|
||||
<p class="list-col-wrap text-xs">{props.message}</p>
|
||||
</div>
|
||||
</li>
|
||||
);
|
||||
};
|
||||
|
||||
export default Message;
|
||||
Loading…
Add table
Add a link
Reference in a new issue