Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,32 @@
|
||||
import { useLocation } from "react-router";
|
||||
import { t as i18nT } from "i18next";
|
||||
import EmptyState from "./EmptyState";
|
||||
|
||||
export default function PreviewEmptyStates() {
|
||||
const currentRoute = useLocation().pathname;
|
||||
return (
|
||||
<div id="empty-states" className="space-y-1">
|
||||
<div className="border-border bg-background border border-dashed p-6">
|
||||
<div className="w-full space-y-2">
|
||||
<EmptyState
|
||||
onClick={() => alert(i18nT("components.emptyState.preview.clicked"))}
|
||||
captions={{
|
||||
new: i18nT("components.emptyState.preview.button"),
|
||||
thereAreNo: i18nT("components.emptyState.preview.thereAreNo"),
|
||||
description: i18nT("components.emptyState.preview.description"),
|
||||
}}
|
||||
icon="plus"
|
||||
/>
|
||||
<EmptyState
|
||||
to={currentRoute}
|
||||
captions={{
|
||||
new: i18nT("components.emptyState.preview.link"),
|
||||
thereAreNo: i18nT("components.emptyState.preview.thereAreNo"),
|
||||
description: i18nT("components.emptyState.preview.description"),
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user