github.com/grafana/pyroscope@v1.18.0/public/app/ui/Icon.tsx (about)

     1  import React from 'react';
     2  import {
     3    FontAwesomeIcon,
     4    FontAwesomeIconProps,
     5  } from '@fortawesome/react-fontawesome';
     6  
     7  export type IconProps = FontAwesomeIconProps;
     8  
     9  // Icon is (currently) an indirect layer over FontAwesomeIcons
    10  export default function Icon(props: IconProps) {
    11    const { icon } = props;
    12    return <FontAwesomeIcon icon={icon} />;
    13  }