import { makeStyles } from "@material-ui/core/styles"; import { timeStamp } from '../../../../../../helpers' const useStyles = makeStyles({ container: { display: "flex", justifyContent: "flex-end", width:'auto', maxWidth: '80%', marginBottom:15 }, imageWrapper: { width: 300, position:'relative' }, image: { borderRadius: 10, width: 300, maxHeight: 400, }, time: { position: "absolute", fontSize: ".65em", fontWeight:600, bottom: -4, right: -4, color: '#ffffff', backgroundColor: '#3a3a3a', padding: 3, borderRadius:5 }, }); interface IMessagesRightImage { imgUrl:string, updatedAt:string, color:string } const MessagesRightImage = ({imgUrl,updatedAt,color}:IMessagesRightImage) => { const classes = useStyles(); return (
message pic
{timeStamp(updatedAt)}
)}; export default MessagesRightImage