userFeedback.tsx 508 B

123456789101112131415161718192021
  1. import type {UserReport as TUserReport} from 'sentry/types';
  2. import {Event} from './event';
  3. import {Group} from './group';
  4. import {User} from './user';
  5. export function UserFeedback(params: Partial<TUserReport> = {}): TUserReport {
  6. const event = Event();
  7. return {
  8. id: '123',
  9. name: 'Lyn',
  10. email: 'lyn@sentry.io',
  11. comments: 'Something bad happened',
  12. dateCreated: '2018-12-20T00:00:00.000Z',
  13. issue: Group(),
  14. eventID: event.id,
  15. event,
  16. user: User(),
  17. ...params,
  18. };
  19. }