import * as React from 'react'; import {get} from 'lodash'; import {superdeskApi} from '../../../superdeskApi'; import {IListFieldProps, ILocation} from '../../../interfaces'; import {PreviewFormItem} from './base/PreviewFormItem'; import {Location} from '../../Location'; export class PreviewFieldLocation extends React.PureComponent { render() { const field = this.props.field ?? 'location'; const location = get(this.props.item, field) as ILocation; return (
); } }