diff --git a/src/components/structure/Modal.jsx b/src/components/structure/Modal.jsx new file mode 100644 index 0000000..b031e11 --- /dev/null +++ b/src/components/structure/Modal.jsx @@ -0,0 +1,75 @@ +import Inferno from 'inferno'; +import Component from 'inferno-component'; + +export class Modal extends Component { + constructor (props) { + super(props); + + this.state = { + isVisible: false, + } + } + + show () { + this.setState({ + isVisible: true, + }); + } + + hide () { + this.setState({ + isVisible: false, + }); + } + + render () { + const { + buttonText, + title, + children, + footerAlign = 'left', + footerContent, + } = this.props; + + return ( +