import React from 'react' ; import { FrameHeadingRendererProps } from './' ; export function JavaFrameHeadingRenderer ( { stackframe , fileDetailComponent : FileDetail , } ) { const { classname , filename , function : fn } = stackframe ; const lineNumber = stackframe . line ?. number ?? 0 ; return ( < > at < FileDetail > { [ classname , fn ] . join ( '.' ) } < /FileDetail>( < FileDetail > { filename } { lineNumber > 0 && `:${ lineNumber }` } < /FileDetail> ) < />); }