/** @jsx jsx */ import { jsx } from '@emotion/core' import { useApps } from '@aragon/connect-react' import { shortenAddress } from './utils' import Group from './Group' import Table from './Table' import TextButton from './TextButton' type Props = { onOpenApp: (address: string) => void } export default function OrgApps({ onOpenApp }: Props) { const [apps, { loading }] = useApps() return ( [ app.name || 'unknown', app.version || '?', onOpenApp(app.address)}> {shortenAddress(app.address)} , ]) .sort(([a], [b]) => a.localeCompare(b))} /> ) }