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