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
12 lines
489 B
// 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>
|
|
);
|
|
}
|