芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/blocksy-companion/static/js/dashboard/screens/Extensions.js
import { createElement, Component, useEffect, useMemo, useState, Fragment, } from '@wordpress/element' import { __ } from 'ct-i18n' import { Transition, animated } from 'blocksy-options' import useExtsStatus from './Extensions/useExtsStatus' import NoLicense from '../NoLicense' const Extensions = ({ navigate }) => { const { forceEmptyExts, exts_status } = useExtsStatus() useEffect(() => { if (!forceEmptyExts) { if (Object.keys(exts_status).length > 0) { navigate(`/extensions/${Object.keys(exts_status)[0]}`) } } }, [exts_status, forceEmptyExts]) if (forceEmptyExts) { return
} return (
{ return phase === 'leave' ? { duration: 300, } : { delay: 300, duration: 300, } }}> {(isLoading) => { if (isLoading) { return (props) => (
{__( 'Loading Extensions Status...', 'blocksy-companion' )}
) } return null }}
) } export default Extensions