yasshi2525/RushHour

View on GitHub
client/src/components/Rail.tsx

Summary

Maintainability
A
1 hr
Test Coverage
import * as React from "react";
import { Avatar } from "@material-ui/core";
import GameModel from "common/models";
import rail from "static/rail.png";
import { MenuStatus } from "state";
import ToggleButton from "./Toggle";

interface ModelProperty {
  model: GameModel;
}

export default (props: ModelProperty) => (
  <ToggleButton {...props} on={MenuStatus.SEEK_DEPARTURE}>
    <Avatar alt="rail" src={rail} />
  </ToggleButton>
);