panelBody.tsx 310 B

123456789101112131415
  1. import styled from '@emotion/styled';
  2. import space from 'app/styles/space';
  3. import textStyles from 'app/styles/text';
  4. type BaseProps = {
  5. withPadding?: boolean;
  6. };
  7. const PanelBody = styled('div')<BaseProps>`
  8. ${p => p.withPadding && `padding: ${space(2)}`};
  9. ${textStyles};
  10. `;
  11. export default PanelBody;