mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
25 lines
597 B
TypeScript
25 lines
597 B
TypeScript
import { StaticImage } from '..';
|
|
import EmptyImg from './empty.png';
|
|
import s from './EmptyCommon.module.scss';
|
|
|
|
|
|
interface Props {
|
|
description?: string
|
|
}
|
|
|
|
const EmptyCommon = ({ description = "No data to display" }: Props) => {
|
|
return (
|
|
<div className={s.empty}>
|
|
<div className={s.imgWrap}>
|
|
<StaticImage src={EmptyImg} alt="empty" />
|
|
</div>
|
|
{
|
|
description && <div className={s.description}>
|
|
{description}
|
|
</div>
|
|
}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default EmptyCommon |