diff --git a/packages/next/src/client/components/react-dev-overlay/internal/container/RuntimeError/GroupedStackFrames.tsx b/packages/next/src/client/components/react-dev-overlay/internal/container/RuntimeError/GroupedStackFrames.tsx deleted file mode 100644 index 1a6ea345b6188..0000000000000 --- a/packages/next/src/client/components/react-dev-overlay/internal/container/RuntimeError/GroupedStackFrames.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import type { StackFramesGroup } from '../../helpers/group-stack-frames-by-framework' -import { CallStackFrame } from './CallStackFrame' -import { CollapseIcon } from '../../icons/CollapseIcon' -import { FrameworkIcon } from '../../icons/FrameworkIcon' - -function FrameworkGroup({ - framework, - stackFrames, -}: { - framework: NonNullable - stackFrames: StackFramesGroup['stackFrames'] -}) { - return ( -
- {/* Match CallStackFrame tabIndex */} - - - - {framework === 'react' ? 'React' : 'Next.js'} - - {stackFrames.map((frame, index) => ( - - ))} -
- ) -} - -export function GroupedStackFrames({ - groupedStackFrames, -}: { - groupedStackFrames: StackFramesGroup[] -}) { - return ( - <> - {groupedStackFrames.map((stackFramesGroup, groupIndex) => { - // Collapse React and Next.js frames - if (stackFramesGroup.framework) { - return ( - - ) - } - - return ( - // Don't group non React and Next.js frames - stackFramesGroup.stackFrames.map((frame, frameIndex) => ( - - )) - ) - })} - - ) -}