/** * @flow * @file file info section of the preview header * @author Box */ import * as React from 'react'; import FileIcon from '../../../icons/file-icon/FileIcon'; import type { BoxItem, BoxItemVersion } from '../../../common/types/core'; import './FileInfo.scss'; type Props = { file: ?BoxItem, version: ?BoxItemVersion, }; const FileInfo = ({ file, version }: Props) => { // Opt to show version over the file object since it is more specific const displayItem = version || file; return (