import { QuestionPageController } from './QuestionPageController.js'
import { type FormContext } from '../types.js'
import { type FormRequest } from '../../../routes/types.js'

export class StartPageController extends QuestionPageController {
  /**
   * The controller which is used when Page["controller"] is defined as "./pages/start.js"
   * This page should not be used in production. This page is helpful for prototyping start pages within the app,
   * but start pages should really live on gov.uk (whitehall publisher) so a user can be properly signposted.
   */

  allowSaveAndExit = false

  getViewModel(request: FormRequest, context: FormContext) {
    return {
      ...super.getViewModel(request, context),
      isStartPage: true
    }
  }
}
