mirror of
https://github.com/stackrender/stackrender.git
synced 2026-09-10 11:15:42 +00:00
34 lines
923 B
TypeScript
34 lines
923 B
TypeScript
|
|
import Modal, { ModalProps } from "@/components/modal";
|
|
|
|
|
|
import React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
import SqlPreview from "../components/db-controller/sql-preview";
|
|
import { Separator } from "@/components/ui/separator";
|
|
|
|
const ExportSqlModal: React.FC<ModalProps> = ({ isOpen, onOpenChange }) => {
|
|
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
|
|
<Modal
|
|
isOpen={isOpen}
|
|
onOpenChange={onOpenChange}
|
|
title={t("modals.export_sql")}
|
|
className="w-full lg:min-w-[960px] "
|
|
description={t("modals.export_sql_header")}
|
|
>
|
|
<Separator />
|
|
<div className="h-full min-h-[65vh] max-h-[65vh] min-w-0 !bg-background p-1 border-1 rounded-md shadow-xs" >
|
|
<SqlPreview />
|
|
</div>
|
|
<Separator />
|
|
|
|
</Modal>
|
|
)
|
|
};
|
|
|
|
|
|
export default React.memo(ExportSqlModal) |