| import React, { useState } from 'react'; |
| import Header from '../../../components/Header'; |
| import SearchBar from './components/SearchBar'; |
| import CreatePostButton from './components/CreatePostButton'; |
| import PostList from './components/PostList'; |
| import './ForumPage.css'; |
| import Promotion from '../promotion-part/Promotion'; |
| const ForumPage = () => { |
| const [searchQuery, setSearchQuery] = useState(''); |
| const handleSearch = (query) => { |
| <div className="forum-page"> |
| <div className="toolbar"> |
| <SearchBar onSearch={handleSearch} /> |
| <PostList search={searchQuery} /> |
| export default ForumPage; |