import { FormData , FormSubmissionErrors } from "../types" ; import { ComponentBase } from "./ComponentBase" ; export class Html extends ComponentBase { getViewModel ( formData , errors ) { const { options } = this ; const viewModel = { ... super . getViewModel ( formData , errors ) , content : this . content , } ; if ( "condition" in options && options . condition ) { viewModel . condition = options . condition ; } return viewModel ; } }