mirror of
https://github.com/usatiuk/y.git
synced 2025-10-29 02:37:49 +01:00
17 lines
312 B
TypeScript
17 lines
312 B
TypeScript
import "./Post.scss";
|
|
|
|
export function Post({
|
|
text,
|
|
createdDate,
|
|
}: {
|
|
text: string;
|
|
createdDate: string;
|
|
}) {
|
|
return (
|
|
<div className={"post"}>
|
|
<span className={"text"}>{text}</span>
|
|
<span className={"createdDate"}>{createdDate}</span>
|
|
</div>
|
|
);
|
|
}
|