import { useState } from "preact/hooks"; import type { Property } from "../../db/interfaces.ts"; interface AddRentalDialogProps { properties: Property[]; onClose?: () => void; } export default function AddRentalDialog( { properties, onClose }: AddRentalDialogProps, ) { const [form, setForm] = useState({ title: "", address_1: "", city: "", state: "", price: "", image_url: "", description: "", }); return (