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

export default function MemosPage() {
    const { apiKey, user } = useAuth();

    return (
        <MemosView
            authToken={apiKey}
            isAdmin={user?.role === 'TENANT_ADMIN' || user?.role === 'SUPER_ADMIN'}
        />
    );
}
