import React from 'react' ; import { Flex , Indicator } from 'design' ; import { AccessDenied } from 'design/CardError' ; import useAppLauncher from './useAppLauncher' ; export default function Container ( ) { const state = useAppLauncher ( ) ; return < AppLauncher { ... state } / > ; } export function AppLauncher ( props ) { if ( props . status === 'failed' ) { return < AccessDenied message = { props . statusText } />; } return ( < Flex height = "180px" justifyContent = "center" alignItems = "center" flex = "1" > < Indicator /> < /Flex>); }