import { useQuery, useMutation } from '@apollo/react-hooks' import { makeStyles } from '@material-ui/core/styles' import gql from 'graphql-tag' import React, { memo } from 'react' import { HelpTooltip } from 'src/components/Tooltip' import { BooleanPropertiesTable } from 'src/components/booleanPropertiesTable' import { Switch } from 'src/components/inputs' import { H4, P, Label2 } from 'src/components/typography' import { fromNamespace, toNamespace, namespaces } from 'src/utils/config' import { SupportLinkButton } from '../../components/buttons' import { global } from './OperatorInfo.styles' const useStyles = makeStyles(global) const GET_CONFIG = gql` query getData { config } ` const SAVE_CONFIG = gql` mutation Save($config: JSONObject) { saveConfig(config: $config) } ` const Row = memo(({ title, disabled = false, checked, save, label }) => { const classes = useStyles() return (
{title}
For details on configuring this panel, please read the relevant knowledgebase article{' '} here .