import React from "react";
import { Link } from "react-router-dom";
import { PowerOffIcon } from "@patternfly/react-icons";

const DashboardClusterStonith = ({ stonithList, clusterUrlName }) => (
  <React.Fragment>
    <div>
      <Link to={`/cluster/${clusterUrlName}/stonith`}>
        <PowerOffIcon />
        <span>&nbsp;&nbsp;</span>
        <strong>{stonithList.length}</strong>
        <span> fence devices</span>
      </Link>
    </div>
  </React.Fragment>
);

export default DashboardClusterStonith;
