Files
tweakcn/components/editor/code-panel-dialog.tsx
T
Luis Llanes 04b74a967b fix: consistency across action buttons dialogs (#58)
* fix: consistency across action buttons dialogs

* chore: improve MCP dialog and add analytics

* fix: dialog height and scroll area
2025-05-04 14:53:46 +05:30

26 lines
738 B
TypeScript

import { Dialog, DialogContent } from "@/components/ui/dialog";
import CodePanel from "./code-panel";
import { ThemeEditorState } from "@/types/editor";
interface CodePanelDialogProps {
open: boolean;
onOpenChange: (open: boolean) => void;
themeEditorState: ThemeEditorState;
}
export function CodePanelDialog({
open,
onOpenChange,
themeEditorState,
}: CodePanelDialogProps) {
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-4xl h-[80vh] p-0 py-6 overflow-hidden rounded-lg border shadow-lg gap-6">
<div className="h-full overflow-auto px-6">
<CodePanel themeEditorState={themeEditorState} />
</div>
</DialogContent>
</Dialog>
);
}