diff --git a/src/components/Skeleton/Skeleton.tsx b/src/components/Skeleton/Skeleton.tsx new file mode 100644 index 000000000..56f6449d0 --- /dev/null +++ b/src/components/Skeleton/Skeleton.tsx @@ -0,0 +1,16 @@ +import {Skeleton as KitSkeleton} from '@gravity-ui/uikit'; + +import {useDelayed} from '../../utils/hooks/useDelayed'; + +interface SkeletonProps { + delay?: number; + className?: string; +} + +export const Skeleton = ({delay = 600, className}: SkeletonProps) => { + const show = useDelayed(delay); + if (!show) { + return null; + } + return ; +};