;
clamp?: boolean;
}) {
const { t } = useTranslation();
if (detail.isLoading) return {t("player.loading")}
;
if (detail.isError && !detail.data)
return (
void detail.refetch()}>
{t("player.descriptionFailed")}
);
const text = detail.data?.description;
if (!text) return {t("player.noDescription")}
;
if (clamp)
return (
{renderDescription(text, { currentId, onSeek, onLoadVideo, t })}
);
return (
{renderDescription(text, { currentId, onSeek, onLoadVideo, t })}
);
}