import * as React from 'react'; import PropTypes from 'prop-types'; import { faEllipsisV } from '@fortawesome/free-solid-svg-icons/faEllipsisV'; import { faInfo } from '@fortawesome/free-solid-svg-icons/faInfo'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import Stack from '@mui/material/Stack'; import Button from '@mui/material/Button'; import IconButton from '@mui/material/IconButton'; import SvgIcon from '@mui/material/SvgIcon'; const FontAwesomeSvgIcon = React.forwardRef((props, ref) => { const { icon } = props; const { icon: [width, height, , , svgPathData], } = icon; return ( {typeof svgPathData === 'string' ? ( ) : ( /** * A multi-path Font Awesome icon seems to imply a duotune icon. The 0th path seems to * be the faded element (referred to as the "secondary" path in the Font Awesome docs) * of a duotone icon. 40% is the default opacity. * * @see https://fontawesome.com/how-to-use/on-the-web/styling/duotone-icons#changing-opacity */ svgPathData.map((d, i) => ( )) )} ); }); FontAwesomeSvgIcon.propTypes = { icon: PropTypes.any.isRequired, }; export default function FontAwesomeSvgIconDemo() { return ( ); }