import Box from '@mui/material/Box';
import { BackstoryPageProps } from '../components/BackstoryTab';
import { Message } from '../components/Message';
import { ChatMessage } from 'types/types';

const LoginRequired = (props: BackstoryPageProps) => {
    const preamble: ChatMessage = {
        role: 'assistant',
        type: 'text',
        status: 'done',
        sessionId: '',
        content: 'You must be logged to view this feature.',
        timestamp: new Date()
    }

    return <Box sx={{display: "flex", flexGrow: 1, maxWidth: "1024px", margin: "0 auto"}}>
        <Message message={preamble} {...props} />
    </Box>
};

export {
  LoginRequired
};