import React from "react";
import "./App.css";

function Result(props) {
  return ( 
    <div className="card">
      <img className="image" src=/*{props.data.image}*/{window.location.origin+props.data.image} alt="neni" />
      <h1 className="phonename">{props.data.brand +" "+ props.data.model}</h1>
      <p className="mem">Velikost paměti {props.data.mem} GB</p>
      <p className="price">cena {props.data.price.toLocaleString()+",-"} </p>
      <p className="phoneinfo">{props.data.text}</p>
    </div>
  );
}

export default Result;
