5180 fichiers 38.5 Mo 0 téléchargements 474 vues mis à jour il y a 7 heures ui
nitro-v36-with-renderer-v36 / src / components / navigator / views / search / NavigatorSearchSkeletonView.tsx
NavigatorSearchSkeletonView.tsx 1.1 Ko Télécharger le fichier
import { FC } from 'react';
import { NativeTextTree } from '../../../../common/native-text/NativeTextTree';

interface NavigatorSearchSkeletonViewProps {
    rows?: number;
}

export const NavigatorSearchSkeletonView: FC<NavigatorSearchSkeletonViewProps> = (props) => {
    const { rows = 5 } = props;

    return (
        <NativeTextTree>
            <div className="flex flex-col gap-2" aria-hidden="true">
                {Array.from({ length: rows }).map((_, index) => (
                    <div key={index} className="octane-card-panel flex items-center gap-2 px-2 py-2">
                        <div className="h-10 w-10 shrink-0 rounded bg-black/10 animate-pulse" />
                        <div className="flex flex-1 flex-col gap-1">
                            <div className="h-3 w-1/2 rounded bg-black/10 animate-pulse" />
                            <div className="h-2.5 w-1/3 rounded bg-black/10 animate-pulse" />
                        </div>
                        <div className="h-4 w-8 shrink-0 rounded bg-black/10 animate-pulse" />
                    </div>
                ))}
            </div>
        </NativeTextTree>
    );
};
15Sujets
1Dépôts
20Membres
3En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser