import React, { useState } from 'react'; import Sidebar from './OCRSidebar'; function Credentials({ onSave }) { const [credentials, setCredentials] = useState({ sapUrl: '', clientId: '', clientSecret: '', username: '', password: '', companyCode: '', apiKey: '' }); const handleChange = (e) => { const { name, value } = e.target; setCredentials({ ...credentials, [name]: value }); }; const handleSubmit = (e) => { e.preventDefault(); onSave(credentials); }; return (