This commit is contained in:
chamikaJ
2025-04-17 18:28:54 +05:30
parent f583291d8a
commit 8825b0410a
2837 changed files with 241385 additions and 127578 deletions

View File

@@ -0,0 +1,30 @@
import { Empty, Typography } from 'antd';
import React from 'react';
type EmptyListPlaceholderProps = {
imageSrc?: string;
imageHeight?: number;
text: string;
};
const EmptyListPlaceholder = ({
imageSrc = 'https://app.worklenz.com/assets/images/empty-box.webp',
imageHeight = 60,
text,
}: EmptyListPlaceholderProps) => {
return (
<Empty
image={imageSrc}
imageStyle={{ height: imageHeight }}
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
marginBlockStart: 24,
}}
description={<Typography.Text type="secondary">{text}</Typography.Text>}
/>
);
};
export default EmptyListPlaceholder;