import React from 'react'; import classNames from 'classnames'; import moment from 'moment'; import formatFileSize from 'filesize'; interface Props { // Required timestamp: number; // Optional fileName?: string; fileSize?: number; onClick?: () => void; shouldShowSeparator?: boolean; } export class DocumentListItem extends React.Component { public static defaultProps: Partial = { shouldShowSeparator: true, }; public render(): JSX.Element { const { shouldShowSeparator } = this.props; return (
{this.renderContent()}
); } private renderContent() { const { fileName, fileSize, onClick, timestamp } = this.props; return ( ); } }