11'use client'
22
33import { Result } from '@/type'
4- import { Box , Button , Heading , HStack , Separator , Text } from '@chakra-ui/react'
4+ import { Box , Button , Heading , HStack , Icon , Separator , Text , VStack } from '@chakra-ui/react'
55import {
66 TimelineConnector ,
77 TimelineContent ,
@@ -10,7 +10,12 @@ import {
1010 TimelineRoot ,
1111 TimelineTitle
1212} from '@/components/ui/timeline'
13- import { CircleArrowDownIcon } from 'lucide-react'
13+ import {
14+ ChevronRightIcon ,
15+ CircleArrowDownIcon , ClipboardCheckIcon ,
16+ MessageCircleIcon ,
17+ MessagesSquareIcon ,
18+ } from 'lucide-react'
1419import {
1520 DrawerBackdrop , DrawerBody ,
1621 DrawerContent , DrawerFooter ,
@@ -30,8 +35,27 @@ export function Analysis({result}: ReportProps) {
3035
3136 return (
3237 < Box mx = { 'auto' } maxW = { '750px' } mb = { 12 } >
33- < Separator my = { 12 } />
38+ < Separator mt = { 20 } mb = { 12 } />
3439 < Heading textAlign = { 'center' } fontSize = { 'xl' } mb = { 5 } > Analysis</ Heading >
40+ < HStack mb = { 5 } justify = { 'center' } >
41+ < VStack gap = { 0 } w = { '200px' } >
42+ < Icon mb = { 2 } > < MessageCircleIcon size = { '30px' } /> </ Icon >
43+ < Text fontSize = { '3xl' } fontWeight = { 'bold' } lineHeight = { 1 } mb = { 1 } > { Object . keys ( result . comments ) . length . toLocaleString ( ) } </ Text >
44+ < Text fontSize = { 'xs' } > 意見が含まれるコメント数</ Text >
45+ </ VStack >
46+ < ChevronRightIcon />
47+ < VStack gap = { 0 } w = { '200px' } >
48+ < Icon mb = { 2 } > < MessagesSquareIcon size = { '30px' } /> </ Icon >
49+ < Text fontSize = { '3xl' } fontWeight = { 'bold' } lineHeight = { 1 } mb = { 1 } > { result . arguments . length . toLocaleString ( ) } </ Text >
50+ < Text fontSize = { 'xs' } > AIが抽出した意見数</ Text >
51+ </ VStack >
52+ < ChevronRightIcon />
53+ < VStack gap = { 0 } w = { '200px' } >
54+ < Icon mb = { 2 } > < ClipboardCheckIcon size = { '30px' } /> </ Icon >
55+ < Text fontSize = { '3xl' } fontWeight = { 'bold' } lineHeight = { 1 } mb = { 1 } > { result . clusters . length . toLocaleString ( ) } </ Text >
56+ < Text fontSize = { 'xs' } > AIが集約したクラスター数</ Text >
57+ </ VStack >
58+ </ HStack >
3559 < Text mb = { 5 } > { result . config . intro } </ Text >
3660 < Box >
3761 < Heading fontSize = { 'md' } mb = { 5 } > 分析手順</ Heading >
0 commit comments