import { Badge, Col, Descriptions, Input, Row, Tabs, Tooltip } from "antd"; import { MoodReadResponse, UserReadPrivateResponse } from "@newstackdev/iosdk-newgraph-client-js"; import { useState } from "react"; import Avatar from "antd/lib/avatar/avatar"; // import { ActivityStream } from "../Components/ActivityStream"; import { ContentImage } from "../Components/Image"; import { ContentLayout } from "../Components/ContentLayout"; import { DataRow } from "../Components/DataRow"; import { LargeArrowBack } from "../Components/Icons/LargeArrowBack"; import { NLView } from "../types"; import { NewcoinWidget } from "../Components/NewcoinWidgets"; import { PostWidget } from "../../src/Components/PostWidget"; import { UserNewcoinInfo, UserNewcoinPoolsParticipation, UserSocialInfoRow, UserWidgetHeading } from "../Components/UserWidget"; import { useAppState } from "../overmind"; // const BlocksioLink = (tx: string | undefined) => { // const link = !tx // ? "" // : `https://local.bloks.io/transaction/${tx}?` + // "nodeUrl=http%3A%2F%2Ftestnet.newcoin.org&coreSymbol=NCO&systemDomain=eosio&" + // "hyperionUrl=http%3A%2F%2Fhyperion.newcoin.org"; // return ( // // {tx} // // ); // }; // export const NewcoinLink: NLView<{ tx?: string }> = ({ tx, children }) => { // return ( // // {children} // // ); // }; const ellipsisStyle = { maxWidth: 125, whiteSpace: "nowrap", textOverflow: "ellipsis", overflow: "hidden", } as const; export const ProfileDetails: NLView = () => { const state = useAppState(); const [activeKey, setActiveKey] = useState("0"); const user: UserReadPrivateResponse = state.api.auth.user || {}; if (!user) return
"Must be logged in"
; return (
{/* Balance: {JSON.stringify(state.newcoin.account)} Pools: {JSON.stringify(state.newcoin.pools)} */} {/* */} {/* */}



{/* */} {false && ( <> username {user.username} id {user.id} subscription status {user.subscriptionStatus} status {user.status} newcoin acc {user.newcoinAccTx} newcoin pool id {user.newcoinPoolId} newcoin pool tx {user.newcoinPoolTx} firstName {user.firstName} lastName {user.lastName} phone {user.phone} )}
); }; const ActivityStream: NLView<{}> = () => { const state = useAppState(); const moods = state.lists.top.moods.items; const postsList = moods.map((m) => m.posts)[0]; return (
{/* {postsList?.slice(0, 20).map((p: any, i: number) => ( ))} */}
); }; export const Profile: NLView = () => { const state = useAppState(); const [activeKey, setActiveKey] = useState("0"); const user: UserReadPrivateResponse = state.api.auth.user || {}; if (!user || !user.id) return
Must be logged in
; return (
{/* Balance: {JSON.stringify(state.newcoin.account)} Pools: {JSON.stringify(state.newcoin.pools)} */} {/* */}



{/* */} {false && ( <> username {user.username} {/*
{user.id} subscription status {user.subscriptionStatus}
*/} status {user.status} newcoin acc {user.newcoinAccTx} newcoin pool id {user.newcoinPoolId} newcoin pool tx {user.newcoinPoolTx} firstName {user.firstName} lastName {user.lastName} phone {user.phone} )}
); };