import styles from "./ToolBar.module.css"
import CreateEventBtn from "./tools/createEventBtn/CreateEventBtn.jsx";
import SearchBtn from "./tools/SearchBtn.tsx";
import FilterBtn from "./tools/FilterBtn.tsx";

function ToolBar({setFilters, filters, showCreate = true}) {

    return (
        <div>
            <div className={styles.eventsButtons}>
                {showCreate && <CreateEventBtn />}
                <SearchBtn />
                <FilterBtn setFilters={setFilters} filters={filters} />
            </div>
        </div>
    );
}

export default ToolBar;