@credithub/harlan-components 1.88.0 → 1.88.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,24 +41,19 @@ var Falencia = function (_a) {
41
41
  var shouldRender = isLoading || items.length > 0;
42
42
  if (!shouldRender)
43
43
  return null;
44
- // 🔴 cora a seção de vermelho se houver falência
45
44
  var variant = isLoading
46
45
  ? 'loading'
47
46
  : items.length > 0
48
47
  ? 'error'
49
48
  : 'default';
50
- /** ------------------------------------------------------------
51
- * ctx precisa ter `Section` e `refetch`
52
- * ----------------------------------------------------------- */
53
49
  var ctx = {
54
50
  type: isLoading ? RequestStatus.Loading : RequestStatus.Success,
55
51
  error: error,
56
52
  document: response === null || response === void 0 ? void 0 : response.document,
57
53
  response: response === null || response === void 0 ? void 0 : response.response,
58
- refetch: refetch, // ← agora existe
59
- Section: Section // ← pode ser o próprio componente (não é usado)
54
+ refetch: refetch,
55
+ Section: Section
60
56
  };
61
- // Passa o variant para colorir header/icon de acordo
62
57
  return (React.createElement(Section, { title: "Fal\u00EAncias", subtitle: "Movimentos falimentares encontrados.", icon: FalenciaIcon, variant: variant, minimized: false, ctx: ctx }));
63
58
  };
64
59
  export default Falencia;