// #region [Imports] =================================================================================================== // Libraries import React, { useState } from 'react'; // Ant Design Components import { Row, Col, Button, Popover, Divider, message } from 'antd'; import { QuestionCircleOutlined } from '@ant-design/icons'; // Helpers import axiosInstance from '../../../helpers/axios'; import { sanitizeHtml } from '../../../../shared/utils'; // SCSS import './index.scss'; // #endregion [Imports] // #region [Variables] ================================================================================================= declare var acfwAdminApp: any; // #endregion [Variables] // #region [Interfaces] ================================================================================================ interface IField { id: string; title: string; desc?: string; desc_tip?: string; labels: { running: string; run: string; }; } interface IProps { field: IField; } // #endregion [Interfaces] // #region [Component] ================================================================================================= const ClearDetachedStoreCreditsField = (props: IProps) => { const { field } = props; const { id, title, desc, desc_tip, labels } = field; const [loading, setLoading] = useState(false); const tooltip = desc_tip ?