ghost-keychain/packages/extension-ui/src/components/ButtonArea.tsx
Jaco 0870570407
Adjust styles for styled-components 6.x (#1279)
* Adjust styles for styled-components 6.x

* Additional cleanups

* Cleanups

* Adjust

* styled with <Props>

* Adjust

* Additional

* Theme jiggling

* Non-vars overrides

* Adjust

* Adjust

* Adjust
2023-08-20 09:39:29 +03:00

34 lines
713 B
TypeScript

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