import { Box, Newline, Text } from 'ink';
import Link from 'ink-link';
import { UncontrolledTextInput } from 'ink-text-input';
import React from 'react';
import { useState } from 'react';
import { colors } from '../../../../config/colors.js';
import { Tenant } from '../../../../types.js';
import { Select } from '../../../components/Select.js';
import { useJourney } from '../context/provider.js';
export const SelectTenant: React.FC = () => {
const { state, dispatch } = useJourney();
const [shouldAskForInput, askForInput] = useState(state.bootstrapTenant && !state.tenant);
return (
<>
{!shouldAskForInput && !state.tenant && (
<>
Please select a Crystallize tenant
Don't have a tenant yet? Create one at {/*@ts-ignore*/}
https://crystallize.com/signup