import { useState } from 'react' import copy from 'copy-to-clipboard' import { CheckIcon, DocumentDuplicateIcon } from '@heroicons/react/24/outline' import Store from 'electron-store' import { getCurrentWindow } from '@electron/remote' import { install } from './install' import OllamaIcon from './ollama.svg' const store = new Store() enum Step { WELCOME = 0, CLI, FINISH, } export default function () { const [step, setStep] = useState(Step.WELCOME) const [commandCopied, setCommandCopied] = useState(false) const command = 'ollama run orca' return (
{step === Step.WELCOME && ( <>

Welcome to Ollama

Let's get you up and running with your own large language models.

)} {step === Step.CLI && ( <>

Install the command line

> ollama

You will be prompted for administrator access

)} {step === Step.FINISH && ( <>

Run your first model

                    {command}
                  

Run this command in your favorite terminal.

)}
) }