text: import React from 'react';
  import { gql } from '@apollo/client';
  import usePlatformApi from '../../../hooks/usePlatformApi';
  import SummaryItem from '../../../components/Summary/SummaryItem';
  
  const REACTOME_SUMMARY = gql`
    fragment reactomeSummary on Disease {
      reactomeSummary: evidences(
        ensemblIds: [$ensgId]
        enableIndirect: true
        datasourceIds: ["reactome"]
        size: 0
      ) {
        count
      }
    }
  `;
  
  function Summary({ definition }) {
    const request = usePlatformApi(REACTOME_SUMMARY);
    return (
      <SummaryItem
        definition={definition}
        request={request}
        renderSummary={({ reactomeSummary }) => {
          const { count } = reactomeSummary;
          return `${count} ${count === 1 ? 'entry' : 'entries'}`;
        }}
      />
    );
  }
  
  Summary.fragments = {
    reactomeSummary: REACTOME_SUMMARY,
  };
  
  export default Summary;
  