You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
489 B

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