Yuki Takei 2 years ago
parent
commit
06d07ec0bb
1 changed files with 8 additions and 1 deletions
  1. 8 1
      apps/app/src/components/TreeItem/SimpleItem.tsx

+ 8 - 1
apps/app/src/components/TreeItem/SimpleItem.tsx

@@ -19,6 +19,7 @@ import { shouldRecoverPagePaths } from '~/utils/page-operation';
 import CountBadge from '../Common/CountBadge';
 import CountBadge from '../Common/CountBadge';
 
 
 import { ItemNode } from './ItemNode';
 import { ItemNode } from './ItemNode';
+import { StateHandlersType } from './state-handlers-type';
 
 
 
 
 export type SimpleItemProps = {
 export type SimpleItemProps = {
@@ -130,6 +131,12 @@ export const SimpleItemTool: FC<SimpleItemToolProps> = (props) => {
   );
   );
 };
 };
 
 
+type SimpleItemContentProps = SimpleItemProps & {
+  page: IPageForItem,
+  children: ItemNode[],
+  stateHandlers: StateHandlersType,
+};
+
 export const SimpleItem: FC<SimpleItemProps> = (props) => {
 export const SimpleItem: FC<SimpleItemProps> = (props) => {
   const {
   const {
     itemNode, targetPathOrId, isOpen: _isOpen = false,
     itemNode, targetPathOrId, isOpen: _isOpen = false,
@@ -212,7 +219,7 @@ export const SimpleItem: FC<SimpleItemProps> = (props) => {
 
 
   const SimpleItemContent = CustomEndComponents ?? [SimpleItemTool];
   const SimpleItemContent = CustomEndComponents ?? [SimpleItemTool];
 
 
-  const SimpleItemContentProps = {
+  const SimpleItemContentProps: SimpleItemContentProps = {
     itemNode,
     itemNode,
     page,
     page,
     onRenamed,
     onRenamed,