diff --git a/frontend/src/components/component.tsx b/frontend/src/components/component.tsx deleted file mode 100644 index 4f623f1..0000000 --- a/frontend/src/components/component.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import React, { useEffect, useRef } from 'react'; - -interface ComponentProps { - name: string; - parent_path: string; - value: any; - readOnly: boolean; - type: string; - docString: string; -} - -export const ComponentLabel = ({ - name, - docString -}: { - name: string; - docString: string; -}) => { - return ; -}; - -export const Component = React.memo( - ({ name, parent_path, value, readOnly, type, docString }: ComponentProps) => { - const renderCount = useRef(0); - - useEffect(() => { - renderCount.current++; - }); - switch (type) { - case 'str': - return ( - <> -
Render count: {renderCount.current}
- - > - ); - case 'method': - return ( - <> -Render count: {renderCount.current}
-Method: {name}
- > - ); - default: - returnUnsupported type: {type}
; - } - } -);