import React from 'react'; import './App.css'; import Home from './components/Home'; import Settings from './components/Settings'; import SwipeableViews from 'react-swipeable-views'; import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'; import Thread from './components/Thread/Thread'; function App() { const [index, setIndex] = React.useState(1); const handleChangeIndex = (index: number) => { console.log("Changed index to:", index); // Add a log to see if this function is called setIndex(index); }; return ( } /> } /> } /> } /> ); } export default App;