import React from 'react' ; import { FrameHeadingRendererProps } from './' ; export function RubyFrameHeadingRenderer ( { stackframe , fileDetailComponent : FileDetail , } ) { const { filename , function : fn } = stackframe ; const lineNumber = stackframe . line ?. number ?? 0 ; return ( < > < FileDetail > { filename } { lineNumber > 0 && `:${ lineNumber }` } < /FileDetail> { ' in ' } < FileDetail > `{fn}&#39;</FileDetail>
    </>);
}
