import React from "react";
import { ViewAnalysisButton } from "../style";
import useTranslation from "../../../../hooks/useTranslation.jsx";
import wordStore from "../../../../mc/wordStore.json";
const AnalysisButton = ({ onClick, disabled = false, loading }) => {
  const { findText } = useTranslation(wordStore);
  return (
    <ViewAnalysisButton onClick={onClick} disabled={disabled}>
      {loading ? findText("Please wait...") : findText("View full analysis")}
    </ViewAnalysisButton>
  );
};
export default AnalysisButton;
