import React from 'react'; import PropTypes from 'prop-types'; import { useTranslation } from 'react-i18next'; const ScrappeStatus = ({ status, handleExecute, id }) => { const { t } = useTranslation(); console.log("id", id) if (status === 'requested') return else if (status === 'done') return Done else return Pending } ScrappeStatus.propTypes = { status: PropTypes.string, id: PropTypes.string, handleExecute: PropTypes.func }; export default ScrappeStatus;