Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Autoría | Ultima modificación | Ver Log |

import { useSelector } from 'react-redux'

const useMonths = () => {
  const labels = useSelector(({ intl }) => intl.labels)

  const months = [
    labels.month_january,
    labels.month_february,
    labels.month_march,
    labels.month_april,
    labels.month_may,
    labels.month_june,
    labels.month_july,
    labels.month_august,
    labels.month_september,
    labels.month_october,
    labels.month_november,
    labels.month_december,
  ]

  return { months }
}

export default useMonths