/** * @flow * @file Sidebar file properties component * @author Box */ import React from 'react'; import getProp from 'lodash/get'; import { injectIntl } from 'react-intl'; import ItemProperties from '../../features/item-details/ItemProperties'; import LoadingIndicatorWrapper from '../../components/loading-indicator/LoadingIndicatorWrapper'; import getFileSize from '../../utils/getFileSize'; import { INTERACTION_TARGET, DETAILS_TARGETS } from '../common/interactionTargets'; import withErrorHandling from './withErrorHandling'; type Props = { classification?: ClassificationInfo, file: BoxItem, hasClassification: boolean, hasRetentionPolicy: boolean, isLoading: boolean, onDescriptionChange: Function, onRetentionPolicyExtendClick?: Function, retentionPolicy?: Object, } & InjectIntlProvidedProps; const SidebarFileProperties = ({ file, onDescriptionChange, hasRetentionPolicy, retentionPolicy, onRetentionPolicyExtendClick, isLoading, intl, }: Props) => ( ); export { SidebarFileProperties as SidebarFilePropertiesComponent }; export default injectIntl(withErrorHandling(SidebarFileProperties));