/* eslint-disable react/jsx-props-no-spreading */
import React, { FunctionComponent } from 'react';

import { StyledSkeleton } from './styled-component';
import { useTheme } from '../Theme';
import { SkeletonProps } from './types.d';

export const Skeleton: FunctionComponent<SkeletonProps> = (props) => {
  const theme = useTheme();
  return <StyledSkeleton $theme={theme} {...props} />;
};
