'use client' import { Button } from '@workspace/ui/components/button' import { useState } from 'react' import { useOnboarding } from '../store' type ConnectState = 'initial' | 'repository-select' | 'template-select' /** * First step in the onboarding flow * Handles GitHub connection and repository selection * * States: * - initial: Shows GitHub connect button * - repository-select: Shows list of repositories * - template-select: Shows available templates * * @component */ export function ConnectStep() { const [connectState, setConnectState] = useState('initial') const [projectName, setProjectName] = useState('') const { setFormData, nextStep } = useOnboarding() const handleConnect = () => { setConnectState('repository-select') } return (
{/* \ */} {connectState === 'initial' ? (

Connect to GitHub

Connect your GitHub account to get started

) : ( // {}} /> <>...connect goes here )}
) }