{isIconShown && (
-
+
{iconRender?.(isCollapsed)}
-
+
)}
{NodeComponent.call(graph, data)}
diff --git a/packages/graphs/src/core/hooks/index.ts b/packages/graphs/src/core/hooks/index.ts
deleted file mode 100644
index 52227a29a..000000000
--- a/packages/graphs/src/core/hooks/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { useOptions } from './useOptions';
diff --git a/packages/graphs/src/core/hooks/useOptions.tsx b/packages/graphs/src/core/hooks/useOptions.tsx
deleted file mode 100644
index 9875b73dc..000000000
--- a/packages/graphs/src/core/hooks/useOptions.tsx
+++ /dev/null
@@ -1,66 +0,0 @@
-import type { NodeData } from '@antv/g6';
-import { idOf } from '@antv/g6';
-import React, { useMemo } from 'react';
-import type { GraphOptions, GraphType } from '../../types';
-import { PlainNode } from '../nodes';
-import { inferCollapsibleStyle, isCollapsible, isReactNode, parseCollapsible, upsertChildrenData } from '../utils/node';
-import { mergeOptions } from '../utils/options';
-
-const COMMON_OPTIONS: GraphOptions = {
- node: {
- type: 'react',
- style: {},
- state: {
- active: {
- halo: false,
- },
- selected: {
- halo: false,
- },
- },
- },
- transforms: ['infer-react-style'],
-};
-
-const hierarchicalGraphOptions: GraphOptions = {
- node: {
- style: {
- component: (data: NodeData) =>