Files
AFFiNE/packages/component/src/ui/empty/empty.tsx
2023-05-08 17:37:07 -05:00

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;