25 lines
560 B
TypeScript
25 lines
560 B
TypeScript
import type { CSSProperties } from 'react';
|
|
|
|
import { EmptySvg } from './empty-svg';
|
|
import { StyledEmptyContainer } from './style';
|
|
export type EmptyContentProps = {
|
|
containerStyle?: CSSProperties;
|
|
description?: string;
|
|
descriptionStyle?: CSSProperties;
|
|
};
|
|
|
|
export const Empty = ({
|
|
containerStyle,
|
|
description,
|
|
descriptionStyle,
|
|
}: EmptyContentProps) => {
|
|
return (
|
|
<StyledEmptyContainer style={containerStyle}>
|
|
<EmptySvg />
|
|
<p style={descriptionStyle}>{description}</p>
|
|
</StyledEmptyContainer>
|
|
);
|
|
};
|
|
|
|
export default Empty;
|