/**
 * 자동 견적 산출 페이지
 * AutoCalculationSimulator와 MultiQuoteCalculator를 Tabs로 구성한 페이지
 */

import { PageLayout } from "./organisms/PageLayout";
import { PageHeader } from "./organisms/PageHeader";
import { Card, CardContent, CardHeader, CardTitle } from "./ui/card";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./ui/tabs";
import { AutoCalculationSimulator } from "./AutoCalculationSimulator";
import { MultiQuoteCalculator } from "./MultiQuoteCalculator";
import { Calculator } from "lucide-react";

export function AutoCalculationPage() {
  return (
    <PageLayout>
      <PageHeader
        title="자동 견적 산출"
        description="오픈사이즈 값을 기준으로 자동으로 견적을 산출합니다"
        icon={Calculator}
      />

      <div className="space-y-6">
        <Card>
          <CardHeader>
            <CardTitle>견적 산출</CardTitle>
          </CardHeader>
          <CardContent>
            <Tabs defaultValue="single" className="w-full">
              <TabsList className="grid w-full grid-cols-2 max-w-md mb-6">
                <TabsTrigger value="single">단일 견적</TabsTrigger>
                <TabsTrigger value="multi">다중 견적 (층/부호별)</TabsTrigger>
              </TabsList>
              
              <TabsContent value="single">
                <AutoCalculationSimulator />
              </TabsContent>
              
              <TabsContent value="multi">
                <MultiQuoteCalculator />
              </TabsContent>
            </Tabs>
          </CardContent>
        </Card>
      </div>
    </PageLayout>
  );
}
