/**
 * React component for modal.
 * @class Modal
 *
 * Generated by {{generator}} on {{today}},
 * from a template provided by {{ pkg.name }}.
 *
 * @see https://facebook.github.io/react/
 */

'use strict'

import React, {PropTypes as types} from 'react'
import classnames from 'classnames'
import {ApModal} from 'apeman-react-modal'
import {ApLocaleMixin, ApStackMixin} from 'apeman-react-mixins'
import defineDebug from 'debug'

import mixins from '../../mixins'

const debug = defineDebug('project:react:modal')

/** @lends Modal */
let Modal = React.createClass({

  // --------------------
  // Specs
  // --------------------

  propTypes: {},

  mixins: [
    ApLocaleMixin,
    ApStackMixin
  ],

  statics: {},

  getInitialState () {
    return {}
  },

  getDefaultProps () {
    return {}
  },

  render () {
    const s = this
    let {state, props} = s

    let l = s.getLocale()

    return (
      <ApModal className={ classnames('modal', props.className)}
        { ...props }>
        { props.children }
      </ApModal>
    )
  },

  // --------------------
  // Lifecycle
  // --------------------

  // ------------------
  // Custom
  // ------------------

  // ------------------
  // Private
  // ------------------
})

export default Modal
