import { useState } from 'react'
import Table from './components/Table.jsx';
import ram_sticks from './data.js';
import './CSS/App.css'
import Chart from './components/Chart.jsx'
function App() {
  const [filteredData, setFilteredData] = useState(ram_sticks);
  return (
    <div className="App">
       <h3>Цены на оперативную память</h3>
       <Chart data={ filteredData } />
        <Table data={ ram_sticks } setFilteredDataCallback={setFilteredData} amountRows="15" />
    </div>
  )
}

export default App
