@@ -23,7 +23,6 @@ import { Thumbnail } from './Thumbnail'
23
23
import { DateTime } from './DateTime'
24
24
import { Title } from './Title'
25
25
import { Counts } from './Counts'
26
- import { Offset } from './Offset'
27
26
import { HideButton } from './HideButton'
28
27
import { TranslucentButton } from './TranslucentButton'
29
28
import { Options , OptionsButton } from './Options'
@@ -68,7 +67,7 @@ export const SlotItem: React.FC<SlotItemProps> = ({
68
67
] )
69
68
70
69
if ( comment ) {
71
- const { thread, markers } = comment
70
+ const { thread, markers, kawaiiCount } = comment
72
71
73
72
slotDetail = {
74
73
id,
@@ -77,6 +76,7 @@ export const SlotItem: React.FC<SlotItemProps> = ({
77
76
info : {
78
77
count : {
79
78
comment : thread . commentCount ,
79
+ kawaii : kawaiiCount ,
80
80
} ,
81
81
} ,
82
82
}
@@ -87,7 +87,7 @@ export const SlotItem: React.FC<SlotItemProps> = ({
87
87
const [ comment ] = await getNiconicoComments ( [ { contentId : id } ] )
88
88
89
89
if ( comment ) {
90
- const { data, threads } = comment
90
+ const { data, threads, kawaiiCount } = comment
91
91
92
92
slotDetail = {
93
93
id,
@@ -96,6 +96,7 @@ export const SlotItem: React.FC<SlotItemProps> = ({
96
96
count : {
97
97
view : data . video . count . view ,
98
98
comment : data . video . count . comment ,
99
+ kawaii : kawaiiCount ,
99
100
} ,
100
101
thumbnail :
101
102
data . video . thumbnail . largeUrl ||
@@ -168,6 +169,7 @@ export const SlotItem: React.FC<SlotItemProps> = ({
168
169
< Thumbnail
169
170
id = { detail . id }
170
171
type = { detail . type }
172
+ offsetMs = { detail . offsetMs }
171
173
isAutoLoaded = { detail . isAutoLoaded }
172
174
info = { detail . info }
173
175
isSearch = { isSearch }
@@ -204,24 +206,14 @@ export const SlotItem: React.FC<SlotItemProps> = ({
204
206
isSearch = { isSearch }
205
207
/>
206
208
207
- < div
208
- className = { cn (
209
- 'flex shrink-0 flex-row items-center justify-between' ,
210
- 'text-foreground-500 dark:text-foreground-600'
211
- ) }
212
- >
213
- { /* 再生数・コメント数 */ }
214
- { ! ( detail . type === 'jikkyo' && isSearch ) && (
215
- < Counts
216
- status = { detail . status }
217
- infoCount = { detail . info . count }
218
- isSearch = { isSearch }
219
- />
220
- ) }
221
-
222
- { /* オフセット */ }
223
- { ! isError && ! isSearch && < Offset offsetMs = { detail . offsetMs } /> }
224
- </ div >
209
+ { /* 再生数 / コメント数 / かわいい率 */ }
210
+ { ! ( detail . type === 'jikkyo' && isSearch ) && (
211
+ < Counts
212
+ status = { detail . status }
213
+ infoCount = { detail . info . count }
214
+ isSearch = { isSearch }
215
+ />
216
+ ) }
225
217
</ div >
226
218
227
219
{ /* サイドボタン */ }
0 commit comments