import React from 'react'; import {data as shared_data} from "./utils"; /** * Component that displays crate modes */ export function CrateMode({current, onChange}) { return (
{shared_data.crateModeOrder.map(item => ( {shared_data.crateModes[item].name} ))}
); } //onClick={onChange(this, item)}