You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
518 B
TypeScript
14 lines
518 B
TypeScript
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>
|
|
);
|
|
} |