-
Notifications
You must be signed in to change notification settings - Fork 10.7k
/
empty-state.tsx
54 lines (50 loc) · 1.4 KB
/
empty-state.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* External dependencies
*/
import { createElement } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
/**
* Internal dependencies
*/
export function EmptyState(
props: React.DetailedHTMLProps<
React.HTMLAttributes< HTMLDivElement >,
HTMLDivElement
>
) {
return (
<div
{ ...props }
role="none"
className="woocommerce-product-custom-fields__empty-state"
>
<div className="woocommerce-product-custom-fields__empty-state-row">
<div>{ __( 'Custom field 1', 'woocommerce' ) }</div>
<div>
<div className="woocommerce-product-custom-fields__empty-state-name" />
</div>
<div>
<div className="woocommerce-product-custom-fields__empty-state-actions" />
</div>
</div>
<div className="woocommerce-product-custom-fields__empty-state-row">
<div>{ __( 'Custom field 2', 'woocommerce' ) }</div>
<div>
<div className="woocommerce-product-custom-fields__empty-state-name" />
</div>
<div>
<div className="woocommerce-product-custom-fields__empty-state-actions" />
</div>
</div>
<div className="woocommerce-product-custom-fields__empty-state-row">
<div>{ __( 'Custom field 3', 'woocommerce' ) }</div>
<div>
<div className="woocommerce-product-custom-fields__empty-state-name" />
</div>
<div>
<div className="woocommerce-product-custom-fields__empty-state-actions" />
</div>
</div>
</div>
);
}