<commit_before>import React from "react"
import styled from "styled-components"
import { media } from "../../Helpers"
import { getDate, getFullEditorialHref } from "../Constants"
import { Date } from "./AuthorDate"
import { Share, ShareContainer } from "./Share"

interface ShareDateProps extends React.HTMLProps<HTMLDivElement> {
  article: any
  color?: string
}

const ShareDateComponent: React.SFC<ShareDateProps> = props => {
  const { article, color } = props
  const title = article.social_title || article.thumbnail_title
  return (
    <div className={props.className}>
      <Date
        date={getDate(article.published_at)}
      />
      <Share
        url={getFullEditorialHref(article.layout, article.slug)}
        title={title}
        color={color}
        hasLabel
      />
    </div>
  )
}

ShareDateComponent.defaultProps = {
  color: 'black'<commit_msg>Remove nested date parsing<commit_after>import React from "react"
import styled from "styled-components"
import { media } from "../../Helpers"
import { getFullEditorialHref } from "../Constants"
import { Date } from "./AuthorDate"
import { Share, ShareContainer } from "./Share"

interface ShareDateProps extends React.HTMLProps<HTMLDivElement> {
  article: any
  color?: string
}

const ShareDateComponent: React.SFC<ShareDateProps> = props => {
  const { article, color } = props
  const title = article.social_title || article.thumbnail_title
  return (
    <div className={props.className}>
      <Date
        date={article.published_at}
      />
      <Share
        url={getFullEditorialHref(article.layout, article.slug)}
        title={title}
        color={color}
        hasLabel
      />
    </div>
  )
}

ShareDateComponent.defaultProps = {
  color: 'black'
{'fraction_non_alphanumeric': 0.12206303724928366, 'fraction_numerical': 0.0, 'mean_word_length': 3.332506203473945, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '3392525', 'n_tokens_mistral': 501, 'n_tokens_neox': 505, 'n_words': 123}