import React from "react";
import { TableCell, TableHead, TableRow } from "@material-ui/core";

const ListHead = ({ options }) => (
  <TableHead>
    <TableRow>
      {options.map((option) => (
        <TableCell key={option.label || "none"}>{option.label}</TableCell>
      ))}
    </TableRow>
  </TableHead>
);

export default ListHead;
