pageHeading.tsx 436 B

12345678910111213141516171819
  1. import styled from '@emotion/styled';
  2. import space from 'sentry/styles/space';
  3. type Props = {
  4. children: React.ReactNode;
  5. className?: string;
  6. withMargins?: boolean;
  7. };
  8. const PageHeading = styled('h1')<Props>`
  9. ${p => p.theme.text.pageTitle};
  10. color: ${p => p.theme.headingColor};
  11. margin: 0;
  12. margin-bottom: ${p => p.withMargins && space(3)};
  13. margin-top: ${p => p.withMargins && space(1)};
  14. `;
  15. export default PageHeading;