import React from 'react' ; import { render } from 'ink' ; import config from '@config' ; import AppCI from './components/AppCI' ; import AppCLI from './components/AppCLI' ; export default function renderApplication ( ) { const isTTY = ! ! ( process . stdout . isTTY && process . stdin . isTTY ) ; render ( config . CI ? < AppCI /> : <AppCLI isTTY={isTTY}/ > , { exitOnCtrlC : config . CI || ! isTTY , } ) ; }