import React from 'react'; import { cx } from '@leafygreen-ui/emotion'; import LeafyGreenProvider, { useDarkMode, } from '@leafygreen-ui/leafygreen-provider'; import { Size, Skeleton } from '..'; import { headerStyles, lastLineStyles, lineStyles, rootStyles, } from './ParagraphSkeleton.styles'; import { ParagraphSkeletonProps } from '.'; export function ParagraphSkeleton({ darkMode: darkModeProp, enableAnimations, withHeader = false, className, ...rest }: ParagraphSkeletonProps) { const { darkMode } = useDarkMode(darkModeProp); return (
{withHeader && ( )}
); } ParagraphSkeleton.displayName = 'ParagraphSkeleton';