-
import { useState } from "react";
import { motion } from "framer-motion";
import {
Button,
Input,
Label,
Card,
CardHeader,
CardTitle,
CardDescription,
CardContent,
Slider,
Badge,
} from "@/components/ui";
import { useSolarFinancing } from "@/hooks/useSolarFinancing";
import { FinancingOptionCard } from "@/components/widgets/financing/FinancingOptionCard";
import { ChartLine, MapPin, Lightning, CurrencyCircleDollar } from "@phosphor-icons/react";
import { toast } from "sonner";
interface FinancingSimulatorProps {
/**
* Coordenadas da localização (latitude, longitude)
*/
location?: { lat: number; lon: number };
/**
* Custo total do sistema solar
*/
systemCost?: number;
/**
* Callback quando uma opção de financiamento é selecionada
*/
onSelectFinancing?: (option: {
id: string;
bank: string;
interestRate: number;
installments: number;
monthlyPayment: number;
totalAmount: number;
}) => void;
/**
* Callback quando cancelar a simulação
…