import * as React from 'react'; import { Chiclet, ChicletSize } from '@fluentui/react-experiments/lib/Chiclet'; import { IButtonProps, IconButton } from '@fluentui/react/lib/Button'; import { Icon, IIconProps } from '@fluentui/react/lib/Icon'; import { Text } from '@fluentui/react/lib/Text'; import { mergeStyles } from '@fluentui/react/lib/Styling'; const SAMPLE_URL = 'https://contoso.sharepoint.com'; const footerStyle = mergeStyles({ display: 'flex', }); const activitiesStyle = mergeStyles({ display: 'flex', alignItems: 'center', justifyContent: 'flex-end', width: 190, fontSize: 12, lineHeight: 1.83, letterSpacing: 'normal', }); const attachStyle = mergeStyles({ height: '24px', width: '16px', fontSize: '16px', marginTop: '6px', marginLeft: '6px', backgroundColor: 'white', color: '#0078d7', }); const sizeStyle = mergeStyles({ width: 34, alignSelf: 'center', lineHeight: 1.83, letterSpacing: 'normal', }); export const ChicletXsmallFooterExample: React.FunctionComponent<{}> = () => { const footerButtonProps: IButtonProps[] = [ { iconProps: { iconName: 'More' } }, { iconProps: { iconName: 'CloudUpload' } }, ]; const attachIconProp: IIconProps = { iconName: 'Attach' }; const footer = ; return ( ); }; class FooterComponent extends React.Component { public render(): JSX.Element { const { buttonProps, attachProps } = this.props; return _renderFooter(buttonProps, attachProps); } } // eslint-disable-next-line deprecation/deprecation interface IFooterComponent extends React.Props { buttonProps: IButtonProps[]; attachProps: IIconProps; } function _renderFooter(buttonProps: IButtonProps[], attachProps: IIconProps): React.ReactElement { return ( {'4MB'} {buttonProps && buttonProps.map((buttonProp: IButtonProps, index: number) => { return ( ); })} ); }