PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.21
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.21
1.4.21 1.4.20 1.4.19 1.4.18 1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 1.3.52 All 184 releases
disco / backend / views / components / Analytics / components / ui-blocks / EmptyData.jsx

EmptyData.jsx in Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO 1.4.21, at backend/views/components/Analytics/components/ui-blocks/EmptyData.jsx

33 lines 792 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import {
2 Empty,
3 EmptyDescription,
4 EmptyHeader,
5 EmptyMedia,
6 EmptyTitle,
7 } from '@/components/ui/empty';
8 import { cn } from '@/lib/utils';
9 import { __ } from '@wordpress/i18n';
10 import { TriangleAlert } from 'lucide-react';
11
12 const EmptyData = ({ title, description }) => {
13 return (
14 <Empty
15 className={cn(
16 'disco:bg-white disco:rounded-xl disco:border disco:border-[#e5e7eb] disco:overflow-hidden disco:py-10'
17 )}
18 >
19 <EmptyHeader>
20 <EmptyMedia variant="icon">
21 <TriangleAlert className="disco:size-8 disco:text-red-400" />
22 </EmptyMedia>
23 <EmptyTitle>
24 {__(`${title} Not Found!`, 'disco') || 'No Data Found!'}
25 </EmptyTitle>
26 <EmptyDescription>{__(description, 'disco')}</EmptyDescription>
27 </EmptyHeader>
28 </Empty>
29 );
30 };
31
32 export default EmptyData;
33