import React, { useState } from 'react'; import { Container, Typography, Grid, Paper, Card, CardContent, CardMedia, Button, Box, TextField, InputAdornment, } from '@mui/material'; import SearchIcon from '@mui/icons-material/Search'; const CarModifications = () => { const [searchTerm, setSearchTerm] = useState(''); // Sample modifications data - in a real app, this would come from an API const modifications = [ { id: 1, name: 'Performance Chip', description: 'Increase engine power and torque with our custom ECU tuning', price: '€299', image: 'https://via.placeholder.com/300x200?text=Performance+Chip', category: 'Engine', }, { id: 2, name: 'Sport Exhaust System', description: 'High-flow exhaust system for better sound and performance', price: '€599', image: 'https://via.placeholder.com/300x200?text=Exhaust+System', category: 'Exhaust', }, { id: 3, name: 'Lowering Springs', description: 'Sport suspension lowering springs for improved handling', price: '€399', image: 'https://via.placeholder.com/300x200?text=Lowering+Springs', category: 'Suspension', }, { id: 4, name: 'Cold Air Intake', description: 'Improved air flow for better engine performance', price: '€199', image: 'https://via.placeholder.com/300x200?text=Cold+Air+Intake', category: 'Engine', }, { id: 5, name: 'Sport Brake Kit', description: 'Upgraded brake system for better stopping power', price: '€899', image: 'https://via.placeholder.com/300x200?text=Brake+Kit', category: 'Brakes', }, { id: 6, name: 'Wheel Spacers', description: 'Improve stance and handling with wheel spacers', price: '€149', image: 'https://via.placeholder.com/300x200?text=Wheel+Spacers', category: 'Wheels', }, ]; const filteredModifications = modifications.filter((mod) => mod.name.toLowerCase().includes(searchTerm.toLowerCase()) || mod.description.toLowerCase().includes(searchTerm.toLowerCase()) || mod.category.toLowerCase().includes(searchTerm.toLowerCase()) ); return ( Car Modifications setSearchTerm(e.target.value)} InputProps={{ startAdornment: ( ), }} /> {filteredModifications.map((mod) => ( {mod.name} {mod.description} {mod.price} {mod.category} ))} ); }; export default CarModifications;