import React, { MouseEventHandler } from "react";

type CityProps = {
  handleClick: MouseEventHandler;
};

export default function Citylist({ handleClick }: CityProps) {
  return (
    <div className="overflow-auto w-full  flex flex-row md:flex-col md:mr-24 bg-sky-100">
      <div className="text-start px-5 py-2 bg-white whitespace-nowrap">
        도시
      </div>
      <button
        id={"서울"}
        onClick={handleClick}
        className="text-start  px-5 py-2 hover:underline whitespace-nowrap"
      >
        서울
      </button>
      <button
        id={"부산"}
        onClick={handleClick}
        className="text-start px-5 py-2 hover:underline whitespace-nowrap"
      >
        부산
      </button>
      <button
        id={"인천"}
        onClick={handleClick}
        className="text-start px-5 py-2 hover:underline whitespace-nowrap"
      >
        인천
      </button>
      <button
        id={"대구"}
        onClick={handleClick}
        className="text-start px-5 py-2 hover:underline whitespace-nowrap"
      >
        대구
      </button>
      <button
        id={"광주"}
        onClick={handleClick}
        className="text-start px-5 py-2 hover:underline whitespace-nowrap"
      >
        광주
      </button>
      <button
        id={"대전"}
        onClick={handleClick}
        className="text-start px-5 py-2 hover:underline whitespace-nowrap"
      >
        대전
      </button>
      <button
        id={"울산"}
        onClick={handleClick}
        className="text-start px-5 py-2 hover:underline whitespace-nowrap"
      >
        울산
      </button>
      <button
        id={"세종"}
        onClick={handleClick}
        className="text-start px-5 py-2 hover:underline whitespace-nowrap"
      >
        세종
      </button>
      <button
        id={"독도"}
        onClick={handleClick}
        className="text-start px-5 py-2 hover:underline whitespace-nowrap"
      >
        독도
      </button>
      <button
        id={"제주"}
        onClick={handleClick}
        className="text-start px-5 py-2 hover:underline whitespace-nowrap"
      >
        제주
      </button>
      {/* citylist */}
    </div>
    // Citylist Page
  );
}
