import { DoubleRightOutlined } from '@ant-design/icons'; import { useIntl } from '@umijs/max'; import { Button } from 'antd'; import React from 'react'; import styled from 'styled-components'; interface MoreButtonProps { show: boolean; loadMore: () => void; loading?: boolean; } const MoreWrapper = styled.div` display: flex; justify-content: center; margin-block: 16px; opacity: 1; transition: opacity 0.3s; &.loading { opacity: 0; transition: opacity 0.3s ease-in-out; } `; const MoreButton: React.FC = (props) => { const { show, loading, loadMore } = props; const intl = useIntl(); return ( <> {show ? ( ) : null} ); }; export default MoreButton;