import React, { useState, useContext } from 'react'; import { useTranslation } from 'react-i18next'; import { v4 as uuidv4 } from 'uuid'; import set from 'lodash/set'; import TextField from '../../../shared/TextField'; import AppContext from '../../../context/AppContext'; import Checkbox from '../../../shared/Checkbox'; import TextArea from '../../../shared/TextArea'; import { addItem } from '../../../utils'; import ItemActions from '../../../shared/ItemActions'; import ItemHeading from '../../../shared/ItemHeading'; import AddItemButton from '../../../shared/AddItemButton'; const CertificationsTab = ({ data, onChange }) => { const { t } = useTranslation(); const context = useContext(AppContext); const { dispatch } = context; return ( <>
onChange('data.certifications.enable', v)} />
onChange('data.certifications.heading', v)} />

{data.certifications.items.map((x, index) => ( ))} ); }; const Form = ({ item, onChange, identifier = '' }) => { const { t } = useTranslation(['leftSidebar', 'app']); return (
onChange(`${identifier}title`, v)} /> onChange(`${identifier}subtitle`, v)} />