import React, { useState, useEffect, ReactElement } from 'react'; import ReactMarkdown from 'react-markdown'; import { Table, Typography } from 'antd'; import { getGithubRelease } from '../../utils/apis'; import { AdminLayout } from '../../components/layouts/AdminLayout'; const { Title } = Typography; const AssetTable = assets => { const data = Object.values(assets) as object[]; const columns = [ { title: 'Name', dataIndex: 'name', key: 'name', render: (text, entry) => {text}, }, { title: 'Size', dataIndex: 'size', key: 'size', render: text => `${(text / 1024 / 1024).toFixed(2)} MB`, }, ]; return (