// Copyright 2017-2020 @polkadot/react-components 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 { GroupProps } from './types'; import React from 'react'; import SUIButton from 'semantic-ui-react/dist/commonjs/elements/Button/Button'; import styled from 'styled-components'; function ButtonGroup ({ children, className = '', isBasic, isCentered }: GroupProps): React.ReactElement { return (
{children}
); } export default React.memo(styled(ButtonGroup)` text-align: right; :not(:first-child) { margin-top: 0.75rem; } > .ui.buttons { vertical-align: middle; } &.centered { margin-bottom: 0.5rem; text-align: center; } &+.ui--Table { margin-top: 1.5rem; } `);