volga_ctf_2022/services/myblog/frontend/layout_blog/Post/Post.tsx

14 lines
518 B
TypeScript
Raw Permalink Normal View History

2023-01-15 13:53:21 +03:00
import {PostProps} from "./Post.props";
import styles from "./Post.module.css"
import cn from "classnames";
export const Post = ({className, title="", content="", ...props}: PostProps): JSX.Element => {
return(
<div className={cn(styles.post, className, {
})} {...props}>
<img src={"http://10.50.20.5:13377/image/images?filename=standart_image.png"}/>
<h1 className={styles.title}>{title}</h1>
<p className={styles.content}>{content}</p>
</div>
);
}