export const Toolbar = ({ mode, setMode }) => {
    return (
        <div class="toolbar">
            <div class="item logo">PHC / Orari</div>
            <div class="options">
                <div class="item option">
                    <div class="compound">
                        <button
                            class={'radio' + (mode === 'course' ? ' selected' : '')}
                            onClick={() => setMode('course')}
                        >
                            Corso
                        </button>
                        <button
                            class={'radio' + (mode === 'work-week' ? ' selected' : '')}
                            onClick={() => setMode('work-week')}
                        >
                            Settimana
                        </button>
                    </div>
                </div>
                <div class="item option">Opzione 2</div>
                <div class="item option">Opzione 3</div>
                <div class="item option">Opzione 4</div>
            </div>
        </div>
    )
}
