Fakultas Ilmu Komputer UI

index.ts 1.22 KB
Newer Older
1
import { UserReportResponse } from 'services/progress/models';
2
3
import { QuestionComment } from '../types';

4
export const page3 = (responseData: UserReportResponse): QuestionComment[] => [
5
6
7
8
  {
    questions: [
      {
        question: 'Minuman manis (satuan: gelas)',
9
        answer: `${responseData.sweet_beverages}`,
10
11
12
13
      },
      {
        question:
          'Gula pasir, gula aren, sirup, selai, atau madu (satuan: sendok makan)',
14
        answer: `${responseData.sugary_ingredients}`,
15
16
17
      },
      {
        question: 'Cemilan digoreng (satuan: potong)',
18
        answer: `${responseData.fried_snacks}`,
19
20
21
22
      },
      {
        question:
          'Makanan ringan asin atau gurih (seperti makanan ringan kemasan, ciki-cikian, keripik) (satuan: bungkus)',
23
        answer: `${responseData.umami_snacks}`,
24
25
26
27
      },
      {
        question:
          'Cemilan manis (seperti kue-kue manis, brownis, cake, biskuit, cokelat, wafer) (satuan: potong)',
28
        answer: `${responseData.sweet_snacks}`,
29
30
31
      },
      {
        question: 'Porsi buah',
32
        answer: `${responseData.fruits_portion}`,
33
34
35
      },
      {
        question: 'Porsi sayur',
36
        answer: `${responseData.vegetables_portion}`,
37
38
      },
    ],
39
    comment: 'nais',
40
41
  },
];