<commit_before>{div, button} = React.DOM

ModalDialog = React.createFactory require './modal-dialog-view'

tr = require '../utils/translate'

module.exports = React.createClass

  displayName: 'AlertDialogView'

  close: ->
    @props.close?()
    @props.callback?()

  render: ->
    (ModalDialog {title: @props.title or (tr '~ALERT_DIALOG.TITLE'), close: @close, zIndex: 500},
      (div {className: 'alert-dialog'},
        (div {className: 'alert-dialog-message'}, @props.message)
        (div {className: 'buttons'},
          (button {onClick: @close}, tr '~ALERT_DIALOG.CLOSE')
        )
      )
    )<commit_msg>Fix alert dialog to use raw html like confirm dialog<commit_after>{div, button} = React.DOM

ModalDialog = React.createFactory require './modal-dialog-view'

tr = require '../utils/translate'

module.exports = React.createClass

  displayName: 'AlertDialogView'

  close: ->
    @props.close?()
    @props.callback?()

  render: ->
    (ModalDialog {title: @props.title or (tr '~ALERT_DIALOG.TITLE'), close: @close, zIndex: 500},
      (div {className: 'alert-dialog'},
        (div {className: 'alert-dialog-message', dangerouslySetInnerHTML: {__html: @props.message}})
        (div {className: 'buttons'},
          (button {onClick: @close}, tr '~ALERT_DIALOG.CLOSE')
        )
      )
    )
{'fraction_non_alphanumeric': 0.1613394216133942, 'fraction_numerical': 0.0045662100456621, 'mean_word_length': 3.2694805194805197, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7544160', 'n_tokens_mistral': 434, 'n_tokens_neox': 418, 'n_words': 97}