import React from 'react';
import { useAuth } from '../../contexts/AuthContext';
import { NotebooksView } from '../../../components/views/NotebooksView';

const NotebooksPage: React.FC = () => {
    const { apiKey, user } = useAuth()

    return (
        <div className="flex flex-col h-full">
            <NotebooksView
                authToken={apiKey}
                onChatWithContext={() => { }}
                isAdmin={user?.role === 'TENANT_ADMIN' || user?.role === 'SUPER_ADMIN'}
            />
        </div>
    )
}

export default NotebooksPage;
