import { useIntl } from '@umijs/max'; import { Button, Space } from 'antd'; import React from 'react'; import IconFont from '../../../components/icon-font'; const ViewCodeButtons: React.FC<{ handleViewCode: () => void; handleToggleCollapse: () => void; activeKey: string; }> = ({ handleViewCode, handleToggleCollapse, activeKey }) => { const intl = useIntl(); if (activeKey === 'compare') { return null; } return ( ); }; export default ViewCodeButtons;