+fs = require('fs');
+path = require('path-extra');
+
 {React, ReactDOM, ReactBootstrap} = window
 ModalArea = require './modal-area'
 OptionArea = require './option-area'

  packet.poi_timestamp = timestamp
  packet.poi_comment = comment


MainArea = React.createClass
  componentDidMount: ->

      battlePacketsNonce = updateNonce battlePacketsNonce
      while battlePackets.length > MAX_PACKET_NUMBER
        battlePackets.pop()
      # Save packet
      savePacket body
      # Render battle packet
      if @shouldAutoShow
        battleNonce = updateNonce battleNonce
