S
Size: a a a
S
E
OJ
const ??? = (props) => {
const { status, mediaInfo } = props;
const { title } = mediaInfo;
switch (status) {
case FetchStatus.LOADING: return (title ? (
<VideoInfoOnIndexPageComponent
{...props}
/>
) : <VideoLoaderComponent />);
case FetchStatus.PREVIEW: return (
<VideoInfoOnIndexPageComponent
{...props}
/>
);
case FetchStatus.LONG_LOADING: return (title ? (
<VideoInfoOnIndexPageComponent
{...props}
/>
) : <VideoLoaderComponent />);
case FetchStatus.READY: return (
<VideoInfoOnIndexPageComponent
{...props}
/>
);
case FetchStatus.ERROR: return (title ? (
<VideoInfoOnIndexPageComponent
{...props}
/>
) : (
<VideoErrorComponent errorReason={props.errorReason} />
));
case FetchStatus.IDLE:
return null;
default:
return <VideoLoaderComponent />;
}
};
V🦖
f
OJ
OH
П
NM
NM
AT
AT
R
R
R
R
NM
П
R
R