mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
26 lines
566 B
TypeScript
26 lines
566 B
TypeScript
import {getLeadHint} from 'sentry/components/events/interfaces/frame/utils';
|
|
import type {Event, Frame} from 'sentry/types';
|
|
import {defined} from 'sentry/utils';
|
|
|
|
type Props = {
|
|
event: Event;
|
|
leadsToApp: boolean;
|
|
isExpanded?: boolean;
|
|
nextFrame?: Frame;
|
|
};
|
|
|
|
function LeadHint({leadsToApp, isExpanded, nextFrame, event}: Props) {
|
|
if (isExpanded || !leadsToApp) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<div className="leads-to-app-hint">
|
|
{getLeadHint({event, hasNextFrame: defined(nextFrame)})}
|
|
{': '}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default LeadHint;
|