/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import { useHistory } from "react-router-dom"; import { useHomepage, useSettings } from "../hooks"; import SettingsLayout from "../layouts/Settings"; import Spinner from "../components/Spinner"; import Button from "../components/Button"; import MarkdownRender from "../components/MarkdownRender"; import Link from "../components/Link"; import { useTranslation } from "react-i18next"; import "./PublishedSiteSettings.css"; function PublishedSiteSettings() { const history = useHistory(); const { homepage, loading } = useHomepage(); const { settings, loadingSettings } = useSettings(); const { t } = useTranslation(); const onContentEdit = () => { history.push("/admin/settings/publishedsite/contentedit"); }; const onNavbarEdit = () => { history.push("/admin/settings/publishedsite/navbaredit"); }; const onAnalyticsEdit = () => { history.push("/admin/settings/publishedsite/analyticsedit"); }; return (

{t("PublishedSiteSettings.PublishedSite")}

{t("PublishedSiteSettings.HeaderDescription")}{" "} {t("PublishedSiteSettings.ViewPublishedSite")}

{t("PublishedSiteSettings.NavigationBar")}

{t("PublishedSiteSettings.NavagationBarDescription")}

{t("PublishedSiteSettings.Title")}

{loadingSettings ? ( ) : (
)}

{t("PublishedSiteSettings.ContactEmailAddressLabel")}

{loadingSettings ? ( ) : (
)}

{t("PublishedSiteSettings.ContactUsLabel")}

{loadingSettings ? ( ) : (
)}

{t("PublishedSiteSettings.HomepageContentHeader")}

{t("PublishedSiteSettings.HomepageContentDescription")}

{t("PublishedSiteSettings.Headline")}

{loading ? ( ) : (

{t("Description")}

)}

{t("PublishedSiteSettings.Analytics")}

{loading ? ( ) : (
{t("PublishedSiteSettings.AnalyticsDescription")}
)}
); } export default PublishedSiteSettings;