import * as React from "react";
import * as Jumper from "~/components/system/components/fragments/Jumper";
import * as MobileJumper from "~/components/system/components/fragments/MobileJumper";
import * as System from "~/components/system";
import * as FileUtilities from "~/common/file-utilities";
import * as Logging from "~/common/logging";
import * as Strings from "~/common/strings";
import * as Styles from "~/common/styles";
import * as Constants from "~/common/constants";
import * as SVG from "~/common/svg";
import { css } from "@emotion/react";
import { useUploadContext } from "~/components/core/Upload/Provider";
import { useUploadStore } from "~/components/core/Upload/store";
import { useUploadOnboardingContext } from "~/components/core/Onboarding/Upload";
import { useCheckIfExtensionIsInstalled, useLocalStorage } from "~/common/hooks";
import DownloadExtensionButton from "~/components/core/Extension/DownloadExtensionButton";
const STYLES_EXTENSION_BAR = (theme) => css`
${Styles.HORIZONTAL_CONTAINER_CENTERED};
justify-content: space-between;
background-color: ${theme.semantic.bgWhite};
@supports ((-webkit-backdrop-filter: blur(75px)) or (backdrop-filter: blur(75px))) {
-webkit-backdrop-filter: blur(75px);
backdrop-filter: blur(75px);
background-color: ${theme.semantic.bgBlurLight};
}
`;
function ExtensionBar() {
const localStorage = useLocalStorage("upload-jumper-extension-bar");
const [isVisible, setVisibility] = React.useState(JSON.parse(localStorage.getItem() || true));
const hideExtensionBar = () => (setVisibility(false), localStorage.setItem(false));
const { isExtensionDownloaded } = useCheckIfExtensionIsInstalled();
if (isExtensionDownloaded || !isVisible) return null;
return (
Save from anywhere on the Web