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>
    );
}