import React, { HTMLAttributes } from 'react';
import styled from 'styled-components';
import { CommonStyle } from '../common/common';
export interface SkeletonProps extends HTMLAttributes {
children?: React.ReactNode;
gap?: number;
loading?: boolean;
active?: boolean;
}
const SkeletonStyled = styled(CommonStyle)`
flex-direction: column;
`;
const Skeleton: React.FC = (props) => {
const { children, active, loading, ...rest } = props;
return (
{children}
);
};
Skeleton.defaultProps = {
loading: true,
active: true,
children: '',
gap: 10
};
export default Skeleton;