import React, { Component } from 'react' import {ProductConsumer} from '../context'; import {Link} from 'react-router-dom'; import {ButtonContainer} from './Button'; import { ThemeConsumer } from './context/ThemeContexts'; export default class Details extends Component { render() { return ( {({ theme }) => ( {value=>{ const {id, company, img, info, price, title, inCart} = value.detailProduct; return(
{/*title*/}

{title}

{/*end of title*/} {/*product info*/}
product
{/*product text*/}

model:{title}

made by: {company}

Price : ${price}

some info about product

{info}

{/*buttons*/}
back to products { value.addToCart(id); value.openModal(id); }}> {inCart ? "inCart" : "add to cart"}
); }}
)}
) } }