import React, { MouseEventHandler, useState } from "react"; type CityProps = { handleClick: MouseEventHandler; }; export default function Citylist({ handleClick }: CityProps) { const [active, setActive] = useState(0); const onactive = "text-start px-5 py-2 underline whitespace-nowrap"; const offactive = "text-start px-5 py-2 whitespace-nowrap"; const clickActive = (a: number) => { setActive(a); }; return (