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,33 @@
|
||||
import { useLocation } from "react-router";
|
||||
import { t as i18nT } from "i18next";
|
||||
import ButtonPrimary from "./ButtonPrimary";
|
||||
import ButtonSecondary from "./ButtonSecondary";
|
||||
import ButtonTertiary from "./ButtonTertiary";
|
||||
|
||||
export default function PreviewButtonsAsLinks() {
|
||||
const currentRoute = useLocation().pathname;
|
||||
return (
|
||||
<div id="buttons-as-links">
|
||||
<div className="not-prose border-border bg-background border border-dashed p-6">
|
||||
<div className="w-full space-y-2">
|
||||
<div className="mx-auto flex max-w-3xl flex-col items-center justify-center space-y-4 sm:flex-row sm:items-end sm:justify-center sm:space-y-0 sm:space-x-4">
|
||||
<ButtonPrimary to={currentRoute}>{i18nT("components.buttons.preview.primary")}</ButtonPrimary>
|
||||
<ButtonSecondary to={currentRoute}>{i18nT("components.buttons.preview.secondary")}</ButtonSecondary>
|
||||
<ButtonTertiary to={currentRoute}>{i18nT("components.buttons.preview.tertiary")}</ButtonTertiary>
|
||||
</div>
|
||||
<div className="mx-auto flex max-w-3xl flex-col items-center justify-center space-y-4 sm:flex-row sm:items-end sm:justify-center sm:space-y-0 sm:space-x-4">
|
||||
<ButtonPrimary disabled={true} to={currentRoute}>
|
||||
{i18nT("components.buttons.preview.primary")}
|
||||
</ButtonPrimary>
|
||||
<ButtonSecondary disabled={true} to={currentRoute}>
|
||||
{i18nT("components.buttons.preview.secondary")}
|
||||
</ButtonSecondary>
|
||||
<ButtonTertiary disabled={true} to={currentRoute}>
|
||||
{i18nT("components.buttons.preview.tertiary")}
|
||||
</ButtonTertiary>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user