import React, { useState } from 'react'; interface LoginPageProps { onLogin: (apiKey: string) => void; isLoading: boolean; error: string; } export function LoginPage({ onLogin, isLoading, error }: LoginPageProps) { const [apiKey, setApiKey] = useState(''); const [showApiKey, setShowApiKey] = useState(false); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); if (apiKey.trim()) { onLogin(apiKey.trim()); } }; return (

Claude Code Usage Dashboard

Monitor your API usage and billing across different periods

setApiKey(e.target.value)} className="appearance-none block w-full px-3 py-2 pr-10 border border-border rounded-md shadow-sm placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:border-ring sm:text-sm bg-background text-foreground" placeholder="Enter your API key" disabled={isLoading} />
{error && (

{error}

)}

Enter your API key to view your usage statistics and billing information.

); }