'use client' import { Group } from '@/app/components/base/icons/src/vender/other' import Line from './line' import cn from '@/utils/classnames' import { useMixedTranslation } from '@/app/components/plugins/marketplace/hooks' type Props = { text?: string lightCard?: boolean className?: string locale?: string } const Empty = ({ text, lightCard, className, locale, }: Props) => { const { t } = useMixedTranslation(locale) return (
{ Array.from({ length: 16 }).map((_, index) => (
11 && 'mb-0', lightCard && 'bg-background-default-lighter opacity-75', )} >
)) } { !lightCard && (
) }
{text || t('plugin.marketplace.noPluginFound')}
) } export default Empty