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

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

36 lines
894 B
TypeScript

// Copyright 2019-2020 @polkadot/extension-ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ThemeProps } from '../types';
import { faArrowRight } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import React from 'react';
import styled from 'styled-components';
import Button from './Button';
type Props = React.ComponentProps<typeof Button>;
function NextStepButton ({ children, ...props }: Props): React.ReactElement<Props> {
return (
<Button {...props}>
{children}
<FontAwesomeIcon
className='arrowRight'
icon={faArrowRight}
size='sm'
/>
</Button>
);
}
export default styled(NextStepButton)(({ theme }: ThemeProps) => `
.arrowRight{
float: right;
margin-top: 4px;
margin-right: 1px;
color: ${theme.buttonTextColor};
}
`);