<commit_before>import { useOmniAural } from 'omniaural'
import { Episode, MediaRef } from 'podverse-shared'
import { useTranslation } from 'react-i18next'
import { MediaItemControls, PVImage } from '~/components'
import { getClipTitle } from '~/lib/utility/misc'
import { PV } from '~/resources'
import { OmniAuralState } from '~/state/omniauralState'

type Props = {
  episode: Episode
  includeMediaItemControls?: boolean
  mediaRef: MediaRef
}

export const ClipInfo = ({ episode, mediaRef }: Props) => {
  const { t } = useTranslation()
  const [userInfo] = useOmniAural('session.userInfo') as [OmniAuralState['session']['userInfo']]
  const title = getClipTitle(t, mediaRef.title, episode.title)

  return (
    <div className='clip-info'>
      <div className='clip-inner-wrapper'>
        {mediaRef.imageUrl && (
          <PVImage
            alt=''
            height={PV.Images.sizes.fullViewAudio}
            src={mediaRef.imageUrl}
            width={PV.Images.sizes.fullViewAudio}
          />
        )}
        <div className='clip-text-wrapper'>
          <div className='clip-title'>{title}</div>
          <MediaItemControls
            buttonSize='large'
            episode={episode}
            hidePubDate
            isLoggedInUserMediaRef={userInfo && userInfo.id === mediaRef.owner.id}
            mediaRef={mediaRef}
            podcast={episode.podcast}
          />
        </div>
      </div>
      <hr />
    </div>
  )
}<commit_msg>Show pubDate in ClipInfo<commit_after>import { useOmniAural } from 'omniaural'
import { Episode, MediaRef } from 'podverse-shared'
import { useTranslation } from 'react-i18next'
import { MediaItemControls, PVImage } from '~/components'
import { getClipTitle } from '~/lib/utility/misc'
import { PV } from '~/resources'
import { OmniAuralState } from '~/state/omniauralState'

type Props = {
  episode: Episode
  includeMediaItemControls?: boolean
  mediaRef: MediaRef
}

export const ClipInfo = ({ episode, mediaRef }: Props) => {
  const { t } = useTranslation()
  const [userInfo] = useOmniAural('session.userInfo') as [OmniAuralState['session']['userInfo']]
  const title = getClipTitle(t, mediaRef.title, episode.title)

  return (
    <div className='clip-info'>
      <div className='clip-inner-wrapper'>
        {mediaRef.imageUrl && (
          <PVImage
            alt=''
            height={PV.Images.sizes.fullViewAudio}
            src={mediaRef.imageUrl}
            width={PV.Images.sizes.fullViewAudio}
          />
        )}
        <div className='clip-text-wrapper'>
          <div className='clip-title'>{title}</div>
          <MediaItemControls
            buttonSize='large'
            episode={episode}
            isLoggedInUserMediaRef={userInfo && userInfo.id === mediaRef.owner.id}
            mediaRef={mediaRef}
            podcast={episode.podcast}
          />
        </div>
      </div>
      <hr />
    </div>
  )
}
{'fraction_non_alphanumeric': 0.13379073756432247, 'fraction_numerical': 0.0013722126929674098, 'mean_word_length': 2.631382316313823, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5547109', 'n_tokens_mistral': 910, 'n_tokens_neox': 880, 'n_words': 172}