From 87f100049cb00ab809396addf7e1f868ea3fea02 Mon Sep 17 00:00:00 2001 From: Renard Date: Thu, 12 Sep 2019 15:40:15 -0300 Subject: Post as object --- src/Post.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/Post.js (limited to 'src/Post.js') diff --git a/src/Post.js b/src/Post.js new file mode 100644 index 0000000..99eadb5 --- /dev/null +++ b/src/Post.js @@ -0,0 +1,36 @@ +import React from "react"; +import { Segment, Header, Image, Label, Icon } from "semantic-ui-react"; +import Moment from "react-moment"; +import "moment/locale/es"; + +const Post = ({ index, post, locked, dir }) => { + const filesize = require('filesize'); + return ( + +
+ #{index + 1} {post.name} + + + +
+ + + {post.file != "" ? + + + + + : null} + + +
+ {locked ? null : + ()} + + + ); +} + +export default Post; \ No newline at end of file -- cgit v1.2.1-18-gbd029