import React from 'react'; import { Table, Popup, Icon } from 'semantic-ui-react'; import styled from 'styled-components'; import { TokenomicsData, StatusServerData } from '@polkadot/joy-utils/src/types/tokenomics'; const StyledTableRow = styled(Table.Row)` .help-icon{ position: absolute !important; right: 0rem !important; top: 0 !important; @media (max-width: 767px){ right: 1rem !important; top:0.8rem !important; } } `; const OverviewTableRow: React.FC<{item: string; value: string; help?: string}> = ({ item, value, help }) => { return (
{item} {help && } content={help} position='right center' />}
{value}
); }; const OverviewTable: React.FC<{data?: TokenomicsData; statusData?: StatusServerData | null}> = ({ data, statusData }) => { const displayStatusData = (val: string, unit: string): string => ( statusData === null ? 'Data currently unavailable...' : statusData ? `${val} ${unit}` : 'Loading...' ); return ( Item Value {/* */}
); }; export default OverviewTable;