import { connect } from "react-redux"; import { Link } from "react-router-dom"; const Projects = ({ snippets }) => { return snippets ? (

{snippets?.map((key, index) => (
code

{`Name: ${snippets?.[index]?.title}` || "Project without name"}

{`Description: ${snippets?.[index]?.description}` || ""}

))}
) : (
{" "}

Loading...
); }; const CProjects = connect(state => ({ snippets: state?.p?.findSnippet?.payload?.data?.SnippetFind, }))(Projects); export default CProjects;