terminal.tsx 671 B

123456789101112131415161718192021222324252627282930313233
  1. import styled from '@emotion/styled';
  2. import {space} from 'sentry/styles/space';
  3. type Props = {
  4. command: string;
  5. };
  6. function Terminal({command}: Props) {
  7. return (
  8. <Wrapper>
  9. <Prompt>{'\u0024'}</Prompt>
  10. {command}
  11. </Wrapper>
  12. );
  13. }
  14. export default Terminal;
  15. const Wrapper = styled('div')`
  16. background: ${p => p.theme.gray500};
  17. padding: ${space(1.5)} ${space(3)};
  18. font-family: ${p => p.theme.text.familyMono};
  19. color: ${p => p.theme.white};
  20. border-radius: ${p => p.theme.borderRadius};
  21. display: grid;
  22. grid-template-columns: max-content 1fr;
  23. gap: ${space(0.75)};
  24. `;
  25. const Prompt = styled('div')`
  26. color: ${p => p.theme.gray300};
  27. `;