import React, { memo, useContext } from 'react'; import { get } from 'lodash'; import PageContext from '../../../contexts/PageContext'; import Icons from '../Icons'; import { formatDate } from '../../../utils'; const BirthDateB = () => { const { data } = useContext(PageContext); const Icon = get(Icons, 'birthday'); if (data.profile.birthDate) { return (