message: show add table button for admin users only
diff: @@ -16,6 +16,7 @@ import {
  Button,
  Select,
  } from "@material-ui/core";
  +import { useFiretableContext } from "../contexts/firetableContext";
  export interface ICreateTableDialogProps {
  /** Optional class overrides */
  @@ -29,7 +30,7 @@ export default function CreateTableDialog({
  createTable,
  }: ICreateTableDialogProps) {
  const router = useRouter();
  -
  + const { userClaims } = useFiretableContext();
  const [open, setOpen] = React.useState(false);
  const [tableName, setTableName] = useState("");
  const [collectionName, setCollectionName] = useState("");
  @@ -55,7 +56,7 @@ export default function CreateTableDialog({
  handleClose();
  }
  -
  + if (userClaims && userClaims.roles.includes("ADMIN"))
  return (
  <div>
  <Tooltip title="Create a table">
  @@ -131,4 +132,5 @@ export default function CreateTableDialog({
  </Dialog>
  </div>
  );
  + else return <></>;
  }
  