@@ -9,7 +9,7 @@ import PlaybackTime from '../PlaybackTime';
99import Loader from '../Loader' ;
1010import Icon , { IconTypes , IconColors } from '../Icon' ;
1111import { LabelTypography , LabelColors } from '../Label' ;
12- import { VoicePlayerStatus } from '../../hooks/VoicePlayer/dux/initialState' ;
12+ import { VOICE_PLAYER_STATUS } from '../../hooks/VoicePlayer/dux/initialState' ;
1313
1414export interface VoiceMessageItemBodyProps {
1515 className ?: string ;
@@ -32,7 +32,7 @@ export const VoiceMessageItemBody = ({
3232 pause,
3333 playbackTime = 0 ,
3434 duration,
35- playingStatus = VoicePlayerStatus . IDLE ,
35+ playingStatus = VOICE_PLAYER_STATUS . IDLE ,
3636 } = useVoicePlayer ( {
3737 channelUrl,
3838 key : `${ message ?. messageId } ` ,
@@ -63,7 +63,7 @@ export const VoiceMessageItemBody = ({
6363 colorType = { isByMe ? ProgressBarColorTypes . PRIMARY : ProgressBarColorTypes . GRAY }
6464 />
6565 < div className = "sendbird-voice-message-item-body__status-button" >
66- { ( playingStatus === VoicePlayerStatus . IDLE || playingStatus === VoicePlayerStatus . PAUSED ) && (
66+ { ( playingStatus === VOICE_PLAYER_STATUS . IDLE || playingStatus === VOICE_PLAYER_STATUS . PAUSED ) && (
6767 < div
6868 className = "sendbird-voice-message-item-body__status-button__button"
6969 onClick = { play }
@@ -76,7 +76,7 @@ export const VoiceMessageItemBody = ({
7676 />
7777 </ div >
7878 ) }
79- { playingStatus === VoicePlayerStatus . PREPARING && (
79+ { playingStatus === VOICE_PLAYER_STATUS . PREPARING && (
8080 < Loader width = "22.2px" height = "22.2px" >
8181 < Icon
8282 width = "22.2px"
@@ -86,7 +86,7 @@ export const VoiceMessageItemBody = ({
8686 />
8787 </ Loader >
8888 ) }
89- { playingStatus === VoicePlayerStatus . PLAYING && (
89+ { playingStatus === VOICE_PLAYER_STATUS . PLAYING && (
9090 < div
9191 className = "sendbird-voice-message-item-body__status-button__button"
9292 onClick = { ( ) => { pause ( ) ; } }
0 commit comments