mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
23 lines
507 B
TypeScript
23 lines
507 B
TypeScript
import ErrorBoundary from 'sentry/components/errorBoundary';
|
|
import KeyValueList from 'sentry/components/events/interfaces/keyValueList';
|
|
import type {KeyValueListData} from 'sentry/types';
|
|
|
|
type Props = {
|
|
data: KeyValueListData;
|
|
raw?: boolean;
|
|
};
|
|
|
|
function ContextBlock({data, raw = false}: Props) {
|
|
if (data.length === 0) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<ErrorBoundary mini>
|
|
<KeyValueList data={data} raw={raw} isContextData />
|
|
</ErrorBoundary>
|
|
);
|
|
}
|
|
|
|
export default ContextBlock;
|