ghost-portal/packages/react-components/src/Modal.tsx
Jaco Greeff 09c45ea3c2
More func. component conversions (#1650)
* More func. component conversions

* Linting updates
2019-09-24 11:42:55 +02:00

32 lines
827 B
TypeScript

// Copyright 2017-2019 @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 { BareProps } from './types';
import React from 'react';
import SUIModal from 'semantic-ui-react/dist/commonjs/modules/Modal/Modal';
import { classes } from './util';
interface Props extends BareProps {
children: React.ReactNode;
[index: string]: any;
}
function Modal (props: Props): React.ReactElement<Props> {
return (
<SUIModal
{...props}
className={classes('theme--default', 'ui--Modal', props.className)}
/>
);
}
Modal.Actions = SUIModal.Actions;
Modal.Content = SUIModal.Content;
Modal.Header = SUIModal.Header;
Modal.Description = SUIModal.Description;
export default Modal;