({
appName,
image,
date,
fDelete,
title,
}: Pick<IProps, 'appName' | 'image' | 'fDelete' | 'date' | 'title'>)
| 261 | ); |
| 262 | }; |
| 263 | const HeaderSmall = ({ |
| 264 | appName, |
| 265 | image, |
| 266 | date, |
| 267 | fDelete, |
| 268 | title, |
| 269 | }: Pick<IProps, 'appName' | 'image' | 'fDelete' | 'date' | 'title'>) => { |
| 270 | const {classes} = useStyles(); |
| 271 | |
| 272 | return ( |
| 273 | <div className={classes.header}> |
| 274 | <div className={classes.headerTitle}> |
| 275 | <Typography className="title" variant="h5" lineHeight={1.2}> |
| 276 | {title} |
| 277 | </Typography> |
| 278 | <Typography variant="subtitle1" fontSize={12} style={{opacity: 0.7}}> |
| 279 | {appName} |
| 280 | </Typography> |
| 281 | <Typography variant="body1" className={classes.date}> |
| 282 | <TimeAgo date={date} formatter={TimeAgoFormatter.long} /> |
| 283 | </Typography> |
| 284 | </div> |
| 285 | <div style={{display: 'flex', alignItems: 'end', flexDirection: 'column'}}> |
| 286 | <IconButton |
| 287 | onClick={fDelete} |
| 288 | style={{padding: 14}} |
| 289 | className={`${classes.trash} delete`} |
| 290 | size="large"> |
| 291 | <Delete /> |
| 292 | </IconButton> |
| 293 | <div style={{width: 30, height: 30}}> |
| 294 | {image !== null ? ( |
| 295 | <img |
| 296 | src={config.get('url') + image} |
| 297 | alt={`${appName} logo`} |
| 298 | className={classes.image} |
| 299 | /> |
| 300 | ) : null} |
| 301 | </div> |
| 302 | </div> |
| 303 | </div> |
| 304 | ); |
| 305 | }; |
| 306 | |
| 307 | export default Message; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…