"use client"; import { useState } from 'react'; import { ApiKeyForm } from './api-key-form'; import { DomainsList } from './domains-list'; import { RecordsList } from './records-list'; import { ApiLogs } from './api-logs'; import { ThemeToggle } from './theme-toggle'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Separator } from '@/components/ui/separator'; export function DNSManager() { const [apiKey, setApiKey] = useState(null); const [selectedDomain, setSelectedDomain] = useState(null); return (

Vultr DNS Manager

Manage your DNS records with ease

{!apiKey ? ( Welcome to Vultr DNS Manager Enter your Vultr API key to get started ) : (
Domains Select a domain to manage
{selectedDomain ? (
{selectedDomain} Records API Logs
Manage DNS records for this domain
) : ( No Domain Selected Please select a domain from the list to manage its DNS records )}
)}
); }