<commit_before>/* @flow */
import React from 'react'
import styled from 'styled-components'
import Header from './Header'
import Info from './Info'
import Compose from './Compose'
import MessageList from './MessageList'
import type { Message } from 'types'

const CHAT_WIDTH = '320px'

const Container = styled.div`
  background-color: ${props => props.theme.background};
  width: ${props => props.chatWidth};
  overflow: hidden;
  border-radius: ${props => (props.isPinned ? '0' : '5px')};

  position: absolute;
  top: ${props => (props.isPinned ? '4.8rem' : 'auto')};
  right: ${props => (props.isPinned ? '0' : '1rem')};
  bottom: ${props => (props.isPinned ? '0' : '1rem')};

  display: flex;
  flex-direction: column;
`

type Props = {
  messages: Array<Message>,<commit_msg>feat(chat): Add box-shadow to floating chat.<commit_after>/* @flow */
import React from 'react'
import styled from 'styled-components'
import Header from './Header'
import Info from './Info'
import Compose from './Compose'
import MessageList from './MessageList'
import type { Message } from 'types'

const CHAT_WIDTH = '320px'

const Container = styled.div`
  background-color: ${props => props.theme.background};
  width: ${props => props.chatWidth};
  overflow: hidden;
  border-radius: ${props => (props.isPinned ? '0' : '5px')};
  box-shadow: ${props =>
    props.isPinned ? '' : '0 3px 5px 0 rgba(0, 0, 0, 0.2)'};

  position: absolute;
  top: ${props => (props.isPinned ? '4.8rem' : 'auto')};
  right: ${props => (props.isPinned ? '0' : '1rem')};
  bottom: ${props => (props.isPinned ? '0' : '1rem')};

  display: flex;
  flex-direction: column;
`

type Props = {
  messages: Array<Message>,
{'fraction_non_alphanumeric': 0.1810601548540798, 'fraction_numerical': 0.01846337105419893, 'mean_word_length': 4.185185185185185, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '6932626', 'n_tokens_mistral': 582, 'n_tokens_neox': 573, 'n_words': 165}