import { CheckCircleFilled } from "@ant-design/icons"; import { Button, Col, List, Row } from "antd"; import React, { useState } from "react"; import { useQuery } from "@apollo/client"; import { useTranslation } from "react-i18next"; import { GET_ALL_QUESTION_SETS } from "../../graphql/csi.queries"; import { DateFormatter } from "../../utils/DateFormatter"; import AlertComponent from "../alert/alert.component"; import LoadingSpinner from "../loading-spinner/loading-spinner.component"; import ShopCsiConfigForm from "../shop-csi-config-form/shop-csi-config-form.component"; export default function ShopCsiConfig() { const { loading, error, data } = useQuery(GET_ALL_QUESTION_SETS); const [selectedCsi, setselectedCsi] = useState(null); const { t } = useTranslation(); if (loading) return ; if (error) return ; return (
The Config Form ( {item.created_at} {item.csis_aggregate.aggregate.count} {item.current ? ( ) : ( )} )} />
); }