import React from 'react'; import { Box, Stack } from '../../primitives'; import { Skeleton } from './Skeleton'; import { usePropsConfig } from '../../../theme'; import type { ISkeletonTextProps } from './props'; const NBSkeletonText = ({ ...props }: ISkeletonTextProps) => { const newProps = usePropsConfig('SkeletonText', props); const { skeletonColor, lineSize, baseColor, noOfLines } = newProps; const para = []; for (let i = 0; i < noOfLines; i++) { para.push( ); } return ( {para} ); }; const SkeletonText = ({ children, isLoaded, ...props }: ISkeletonTextProps) => { if (isLoaded) return {children}; return ; }; export default SkeletonText;