Skip to content

Commit ac9c18f

Browse files
committed
Add basic multi-select support (no actions, nothing in right pane)
1 parent cfc164c commit ac9c18f

File tree

6 files changed

+372
-210
lines changed

6 files changed

+372
-210
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import * as React from 'react';
2+
import { observer } from 'mobx-react';
3+
4+
import { CollectedEvent } from '../../types';
5+
6+
import { EmptyState } from '../common/empty-state';
7+
8+
export const MultiSelectionSummaryPane = observer((props: {
9+
selectedEvents: ReadonlyArray<CollectedEvent>
10+
}) => {
11+
const count = props.selectedEvents.length;
12+
13+
return <EmptyState icon='ListChecks'>
14+
{count} event{count !== 1 ? 's' : ''} selected
15+
</EmptyState>;
16+
});

0 commit comments

Comments
 (0)