Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

820 B
Raw Blame
import { t } from "ttag";

import { Modal, Text } from "metabase/ui";

import { RemoteSyncSettingsForm } from "../RemoteSyncAdminSettings";

export interface GitSettingsModalProps {
  isOpen: boolean;
  onClose: () => void;
}

export const GitSettingsModal = ({
  isOpen,
  onClose,
}: GitSettingsModalProps) => {
  return (
    <Modal
      density="relaxed"
      opened={isOpen}
      onClose={onClose}
      withCloseButton={false}
      title={t`Set up remote sync for your Library`}
      size="xl"
    >
      <Text c="text-secondary" size="md" fw={400} lh="1.25rem" mb="xl">
        {t`Keep your Library and transforms safely backed up in Git.`}
      </Text>
      <RemoteSyncSettingsForm
        onCancel={onClose}
        onSaveSuccess={onClose}
        variant="settings-modal"
      />
    </Modal>
  );
};