Fakultas Ilmu Komputer UI

index.ts 1.33 KB
Newer Older
1
2
3
4
import {
  UserReportResponse,
  NutritionistCommentResponse,
} from 'services/progress/models';
5
6
import { QuestionComment } from '../types';

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