+
+
+
{title}
+ {children === undefined ? null : (
+
{children}
+ )}
+
+ {action === undefined ? null :
{action}
}
+
+ );
+ },
+);
+EmptyState.displayName = 'EmptyState';
diff --git a/src/components/components.test.tsx b/src/components/components.test.tsx
index a3da411..ab3649d 100644
--- a/src/components/components.test.tsx
+++ b/src/components/components.test.tsx
@@ -7,6 +7,7 @@ import { Badge } from './Badge';
import { Button } from './Button';
import { Card, CardContent, CardTitle } from './Card';
import { Dialog } from './Dialog';
+import { EmptyState } from './EmptyState';
import { Input } from './Field';
import { Meter } from './Meter';
import { Select } from './Select';
@@ -89,6 +90,23 @@ describe('form controls', () => {
});
describe('display components', () => {
+ it('renders an empty state with document-aware heading and action', () => {
+ render(
+