import { useState } from "react";
import { Input } from "@/components/ui/input";
import { Button } from "@/components/ui/button";
import { Card, CardContent } from "@/components/ui/card";
export default function MortgageCalculator() {
const [income, setIncome] = useState("");
const [monthlyPayments, setMonthlyPayments] = useState("");
const [municipalTaxes, setMunicipalTaxes] = useState("");
const [interestRate, setInterestRate] = useState("");
const [amortization, setAmortization] = useState("");
const handleCalculate = () => {
// Ajoutez ici la logique de calcul
};
return (
);
}
setIncome(e.target.value)}
placeholder="0"
/>
$
setMonthlyPayments(e.target.value)}
placeholder="0"
/>
$
setMunicipalTaxes(e.target.value)}
placeholder="0"
/>
$
setInterestRate(e.target.value)}
placeholder="0"
step="0.01"
/>
%
setAmortization(e.target.value)}
placeholder="0"
/>