import * as React from 'react' ; import { css } from 'office-ui-fabric-react/lib/Utilities' ; import { Icon } from 'office-ui-fabric-react/lib/Icon' ; import { IFieldRendererProps } from '../fieldCommon/IFieldRendererProps' ; import * as telemetry from '../../../common/telemetry' ; import styles from './FieldAttachmentsRenderer.module.scss' ; /**
 * Attachments renderer props
 */ export interface IFieldAttachmentsRendererProps extends IFieldRendererProps { /**
     * amount of attachments
     */ count ? : number ; } /**
 * For future
 */ export interface IFieldAttahcmentsRendererState { } /**
 * Attachments Renderer.
 * Used for:
 *   - Attachments
 */ export class FieldAttachmentsRenderer extends React . Component < IFieldAttachmentsRendererProps , IFieldAttahcmentsRendererState > { public constructor ( props , state ) { super ( props , state ) ; telemetry . track ( 'FieldAttachmentsRenderer' , { } ) ; this . state = { } ; } public render ( ) { return ( < div className = { css ( this . props . className , styles . container , styles . fabricIcon ) } style = { this . props . cssProps } > { this . props . count && < Icon iconName = { 'Attach' } > < /Icon>} < /div>); } }