import React from 'react' ; import { FrameHeadingRendererProps } from './' ; export function DefaultFrameHeadingRenderer ( { stackframe , fileDetailComponent : FileDetail , } ) { const lineNumber = stackframe . line ?. number ?? 0 ; const name = 'filename' in stackframe ? stackframe . filename : stackframe . classname ; return ( < > < FileDetail > { name } < /FileDetail> in{' '} < FileDetail > { stackframe . function } < /FileDetail> { lineNumber > 0 && ( < > { ' at ' } < FileDetail > line { lineNumber } < /FileDetail> < />)} < />); }