// import icon_rail from "../assets/icon_track.svg";
export default function RailTypeBtn({ text, onClick }: { text: string; onClick?: () => void }) {
  return (
    <div
      className="flex items-center border border-[#dfdfdf] rounded-sm bg-white/[0.7] px-2 py-1 gap-2"
      onClick={onClick}>
      {/* <img src={icon_rail} alt="icon" /> */}
      <span className="text-title">{text}</span>
      <i className="w-2 h-2 border-t border-r border-[#ccc] rotate-45"></i>
    </div>
  );
}
