import { Avatar, List } from "antd"; import { Link } from "react-router-dom"; import { NLView } from "../types"; import { json } from "overmind"; import { useAppState } from "../overmind"; import Logo from "./Icons/Logo"; export const ActivityStream: NLView<{ limit?: number }> = (props) => { const state = useAppState(); const _src = json(state.websockets.messages.activityStream); const src = props.limit ? _src.slice(0, props.limit) : _src; return ( { return ( // } title={ {item.title} } description={item.description} // + " " + JSON.stringify(item.original)} style={{ maxWidth: props.limit ? 300 : "100%" }} /> ); }} /> ); };