123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import ProjectAvatar from 'sentry/components/avatar/projectAvatar';
- import {
- CrumbContainer,
- EventDrawerBody,
- EventDrawerContainer,
- EventDrawerHeader,
- EventNavigator,
- Header,
- NavigationCrumbs,
- ShortId,
- } from 'sentry/components/events/eventDrawer';
- import {t} from 'sentry/locale';
- import type {Group} from 'sentry/types/group';
- import type {Project} from 'sentry/types/project';
- import StreamlinedActivitySection from 'sentry/views/issueDetails/streamline/activitySection';
- interface ActivityDrawerProps {
- group: Group;
- project: Project;
- }
- export function ActivityDrawer({group, project}: ActivityDrawerProps) {
- return (
- <EventDrawerContainer>
- <EventDrawerHeader>
- <NavigationCrumbs
- crumbs={[
- {
- label: (
- <CrumbContainer>
- <ProjectAvatar project={project} />
- <ShortId>{group.shortId}</ShortId>
- </CrumbContainer>
- ),
- },
- {label: t('Activity')},
- ]}
- />
- </EventDrawerHeader>
- <EventNavigator>
- <Header>{t('Activity')}</Header>
- </EventNavigator>
- <EventDrawerBody>
- <StreamlinedActivitySection group={group} isDrawer />
- </EventDrawerBody>
- </EventDrawerContainer>
- );
- }
|