item.action()} style={{ color: item.textColor }}>\r\n {item.text}\r\n
\r\n );\r\n }\r\n\r\n return (\r\n \r\n
\r\n\r\n
{props.menuList ? props.menuList.map(createLinks) : null}
\r\n
\r\n );\r\n}\r\n\r\nFABMenu.propTypes = {\r\n /** Set the background color of the button */\r\n buttonColor: PropTypes.string,\r\n /** When true, fab will always display */\r\n displayAlways: PropTypes.bool,\r\n /** displays an icon and ignores any children */\r\n iconName: PropTypes.string,\r\n /** Onlick only available if icon passed */\r\n /** A list of link objects */\r\n menuList: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n action: PropTypes.func.isRequired,\r\n text: PropTypes.string.isRequired,\r\n textColor: PropTypes.string,\r\n })\r\n ),\r\n onClick: PropTypes.func,\r\n /** Positions the fab on the screen */\r\n position: PropTypes.oneOf(['left', 'right']),\r\n};\r\n\r\nFABMenu.defaultProps = {\r\n displayAlways: false,\r\n iconName: '',\r\n menuList: null,\r\n onClick: () => {},\r\n position: 'right',\r\n style: {},\r\n};\r\n\r\nexport default FABMenu;\r\n","import React from 'react';\r\nimport { DetailList, DetailListItem, Divider, Grid, Paper, Typography } from '@orbital-ds/core';\r\nimport { ICartReward } from 'src/actions/models/cartModels';\r\n\r\nexport interface IIncentiveSummaryProps {\r\n resources: IIncentiveSummaryResources;\r\n rewardsSummary?: ICartReward[];\r\n}\r\n\r\nexport interface IIncentiveSummaryResources {\r\n earnedLabel: string;\r\n remainingLabel: string;\r\n rewardSummaryLabel: string;\r\n usedLabel: string;\r\n}\r\n\r\nexport const IncentiveSummary: React.FC