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 whitespace-nowrap w-full border-b-4 md:border-b-0 md:border-r-4 border-lime-500"; const offactive = "text-start px-5 py-2 whitespace-nowrap w-full "; const clickActive = (a: number) => { setActive(a); }; return (