33 lines
723 B
TypeScript
33 lines
723 B
TypeScript
// Copyright 2017-2019 @polkadot/app-123code authors & contributors
|
|
// This software may be modified and distributed under the terms
|
|
// of the Apache-2.0 license. See the LICENSE file for details.
|
|
|
|
import { BareProps } from '@polkadot/ui-app/types';
|
|
|
|
import React from 'react';
|
|
import styled from 'styled-components';
|
|
|
|
type Props = BareProps & {
|
|
children: React.ReactNode
|
|
};
|
|
|
|
const Wrapper = styled.div`
|
|
opacity: 0.5;
|
|
padding: 1rem 1.5rem;
|
|
`;
|
|
|
|
export default class Summary extends React.PureComponent<Props> {
|
|
render () {
|
|
const { children, className, style } = this.props;
|
|
|
|
return (
|
|
<Wrapper
|
|
className={className}
|
|
style={style}
|
|
>
|
|
{children}
|
|
</Wrapper>
|
|
);
|
|
}
|
|
}
|