import React, { useState, useEffect } from "react"; import ReactMarkdown from "react-markdown"; import { Table, Typography } from "antd"; import { getGithubRelease } from "../utils/apis"; const { Title } = Typography; function AssetTable(assets) { const data = Object.values(assets); 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