Fakultas Ilmu Komputer UI

index.ts 769 Bytes
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 page1 = (
  reportData: UserReportResponse,
  commentData: NutritionistCommentResponse,
): QuestionComment[] => [
11
12
13
14
  {
    questions: [
      {
        question: 'Berat badan (kg)',
15
        answer: `${reportData.weight}`,
16
17
      },
    ],
18
    comment: commentData.weight,
19
20
21
22
23
  },
  {
    questions: [
      {
        question: 'Tinggi badan (cm)',
24
        answer: `${reportData.height}`,
25
26
      },
    ],
27
    comment: commentData.height,
28
29
30
31
32
  },
  {
    questions: [
      {
        question: 'Lingkar pinggang (cm)',
33
        answer: `${reportData.waist_size}`,
34
35
      },
    ],
36
    comment: commentData.waist_size,
37
38
  },
];