Summary.tsx 668 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2017-2019 @polkadot/app-123code authors & contributors
  2. // This software may be modified and distributed under the terms
  3. // of the Apache-2.0 license. See the LICENSE file for details.
  4. import { BareProps } from '@polkadot/react-components/types';
  5. import React from 'react';
  6. import styled from 'styled-components';
  7. interface Props extends BareProps {
  8. children: React.ReactNode;
  9. }
  10. function Summary ({ children, className, style }: Props): React.ReactElement<Props> {
  11. return (
  12. <div
  13. className={className}
  14. style={style}
  15. >
  16. {children}
  17. </div>
  18. );
  19. }
  20. export default styled(Summary)`
  21. opacity: 0.5;
  22. padding: 1rem 1.5rem;
  23. `;