<commit_before>(ns status-im.ui.screens.chat.bottom-info
  (:require [reagent.core :as reagent]
            [status-im.ui.components.animation :as anim]
            [status-im.ui.components.react :as react]
            [status-im.ui.screens.chat.styles.main :as styles]))

(defn- container-animation-logic
  [{:keys [to-value val]}]
  (fn [_]
    (anim/start
     (anim/spring val {:toValue  to-value
                       :friction 6
                       :tension  40}))))

(defn overlay
  [{:keys [on-click-outside]} items]
  [react/view styles/bottom-info-overlay
   [react/touchable-highlight {:on-press on-click-outside
                               :style    styles/overlay-highlight}
    [react/view nil]]
   items])

(defn container
  [height & _]
  (let [anim-value    (anim/create-value 1)
        context       {:to-value height
                       :val      anim-value}
        on-update     (container-animation-logic context)]
    (reagent/create-class
     {:component-did-update
      on-update
      :display-name "container"
      :reagent-render
      (fn [height & children]
        [react/animated-view {:style (styles/bottom-info-container height)}
         (into [react/view] children)])})))<commit_msg>remove message options animation (dead code)<commit_after>(ns status-im.ui.screens.chat.bottom-info
  (:require [status-im.ui.components.react :as react]
            [status-im.ui.screens.chat.styles.main :as styles]))

(defn overlay
  [{:keys [on-click-outside]} items]
  [react/view styles/bottom-info-overlay
   [react/touchable-highlight {:on-press on-click-outside
                               :style    styles/overlay-highlight}
    [react/view nil]]
   items])

(defn container
  [height & children]
  [react/view {:style (styles/bottom-info-container height)}
   (into [react/view] children)])
{'fraction_non_alphanumeric': 0.13725490196078433, 'fraction_numerical': 0.002178649237472767, 'mean_word_length': 2.34, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4618575', 'n_tokens_mistral': 589, 'n_tokens_neox': 559, 'n_words': 115}