import React from "react";
import { Card, CardContent, CardHeader, CardTitle } from "./ui/card";
import { AutoCalculationSimulator } from "./AutoCalculationSimulator";

interface AutoCalculationWithTabsProps {
  showSampleButton?: boolean;
  showResults?: boolean;
  onCalculationComplete?: (results: any) => void;
}

/**
 * 자동 견적 산출 컴포넌트
 * - 다중 견적 산출 지원
 */
export function AutoCalculationWithTabs({
  showSampleButton = true,
  showResults = true,
  onCalculationComplete
}: AutoCalculationWithTabsProps = {}) {
  return (
    <Card>
      <CardHeader>
        <div>
          <CardTitle className="font-bold">자동 견적 산출</CardTitle>
          <p className="text-sm text-muted-foreground mt-1">
            입력값을 기반으로 견적을 자동으로 산출합니다
          </p>
        </div>
      </CardHeader>
      <CardContent>
        <AutoCalculationSimulator 
          showSampleButton={showSampleButton}
          showResults={showResults}
          onCalculationComplete={onCalculationComplete}
        />
      </CardContent>
    </Card>
  );
}