mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
create nav bar for available versions
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
|
||||
export function AvailableVersionsNavBar(props: {years: string[], setSelectedYear: Function}) {
|
||||
return (
|
||||
<div className="w-full h-fit flex justify-center items-center">
|
||||
{ props.years.map((y, index) => <span key={index} onClick={() => props.setSelectedYear(y)}>{y}</span>) }
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user