В
Size: a a a
AK
AK
BD
BD
BD
BD
BD
BD
YK
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 />;
}
};АЧ