<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import Image from './Image';

export default function ImagePreview(options = {}) {
  let container = document.createElement('div');

  const closePreviewMask = () => {
    if (!container) {
      return;
    }

    ReactDOM.unmountComponentAtNode(container);
    container = undefined;
  };

  const props = {
    ...options,
    visible: true,
    onClose: closePreviewMask
  };

  ReactDOM.render(React.createElement(Image, props), container);
}<commit_msg>fix: fix export func name<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import Image from './Image';

export default function imagePreview(options = {}) {
  let container = document.createElement('div');

  const closePreviewMask = () => {
    if (!container) {
      return;
    }

    ReactDOM.unmountComponentAtNode(container);
    container = undefined;
  };

  const props = {
    ...options,
    visible: true,
    onClose: closePreviewMask
  };

  ReactDOM.render(React.createElement(Image, props), container);
}
{'fraction_non_alphanumeric': 0.12846580406654343, 'fraction_numerical': 0.0, 'mean_word_length': 3.688311688311688, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4884466', 'n_tokens_mistral': 308, 'n_tokens_neox': 306, 'n_words': 78}