import React, { HTMLAttributes } from 'react';
import styled from 'styled-components';
import EmptyIcon from '../icons/empty1.svg';
export interface EmptyProps extends HTMLAttributes {
children?: React.ReactNode;
icon?: React.ReactNode;
description?: React.ReactNode;
}
const EmptyStyled = styled.div`
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
`;
const EmptyWrap = styled.div`
display: flex;
flex-direction: column;
gap: 30px;
justify-content: center;
align-items: center;
max-width: 400px;
> .ui-empty-description {
word-break: break-all;
text-align: center;
font-size: 14px;
}
`;
const Empty: React.FC = (props) => {
const { children, icon, description, ...rest } = props;
return (
{icon}
{description}
{children}
);
};
Empty.defaultProps = {
children: '',
icon: ,
description: ''
};
export default Empty;