import React from 'react'; import Dialog from 'wdk-client/Components/Overlays/Dialog'; import { makeClassNameHelper } from 'wdk-client/Utils/ComponentUtils'; import { Reporter } from 'wdk-client/Utils/WdkModel'; import 'wdk-client/Views/AttributeAnalysis/AttributeAnalysis.scss'; import {ResultType} from 'wdk-client/Utils/WdkResult'; const cx = makeClassNameHelper('AttributeAnalysis'); type Props = { resultType: ResultType; reporter: Reporter; isOpen: boolean; onOpen: (reporterName: string, resultType: ResultType) => void; onClose: (reporterName: string, resultType: ResultType) => void; children: React.ReactChild; } export default function AttributeAnalysisButton(props: Props) { const { reporter, children, onOpen, onClose, isOpen, resultType, } = props; const title = `Analyze/Graph the contents of this column by ${reporter.displayName.toLowerCase()}`; return (