feedbackErrorDetails.tsx 541 B

12345678910111213141516171819202122
  1. import type {ComponentProps} from 'react';
  2. import styled from '@emotion/styled';
  3. import Alert from 'sentry/components/alert';
  4. import FluidHeight from 'sentry/views/replays/detail/layout/fluidHeight';
  5. interface Props extends ComponentProps<typeof FluidHeight> {
  6. error: string;
  7. }
  8. const FeedbackErrorDetails = styled(({error, ...props}: Props) => (
  9. <FluidHeight {...props}>
  10. <Alert type="error" showIcon>
  11. {error}
  12. </Alert>
  13. </FluidHeight>
  14. ))`
  15. display: grid;
  16. place-items: center;
  17. `;
  18. export default FeedbackErrorDetails;