import React from "react";
import { useParams } from "react-router";
import clsx from "clsx";
import { Typography } from "@material-ui/core";

import FleetCANFiltersTable from "./CANFilters/Table";
import useStyles from "../../useStyles";

const FleetCANFiltersTab = () => {
  const { name } = useParams();
  const classes = useStyles();

  return (
    <div className={clsx(classes.paper, classes.tableSize)}>
      <Typography variant="h6" className={classes.textCenterAlign}>CAN Filters</Typography>
      <FleetCANFiltersTable name={name} classes={classes} />
    </div >
  );
};

export default FleetCANFiltersTab;
