import { actionSearch } from "../actions/actionSearch"; import { Link } from "react-router-dom"; import { connect } from "react-redux"; import { useState } from "react"; import code from "../../src/code.png"; import "./Main.css"; const Search = ({ onSearch, snippets }) => { const [request, setRequest] = useState(""); return ( <>
{`Name: ${snippets?.[index]?.title}` || "Project without name"}
{`Description: ${snippets?.[index]?.description}` || ""}
{`Owner: ${snippets?.[index]?.owner?.login}`}