ghost-keychain/packages/extension-ui/src/components/ButtonArea.tsx
Jaco Greeff 58b1320d41
Use type import (#556)
* Use type import

* Small updates
2020-12-01 14:18:19 +01:00

35 lines
785 B
TypeScript

// Copyright 2019-2020 @polkadot/extension-ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ThemeProps } from '../types';
import React from 'react';
import styled from 'styled-components';
interface Props extends ThemeProps {
className?: string;
children: React.ReactNode;
}
const ButtonArea = function ({ children, className }: Props) {
return (
<div className={className}>
{children}
</div>
);
};
export default styled(ButtonArea)(({ theme }: ThemeProps) => `
display: flex;
flex-direction: row;
background: ${theme.highlightedAreaBackground};
border-top: 1px solid ${theme.inputBorderColor};
padding: 12px 24px;
margin-left: 0;
margin-right: 0;
& > button:not(:last-of-type) {
margin-right: 8px;
}
`);