mirror of
https://github.com/jnsahaj/tweakcn.git
synced 2026-08-30 18:10:28 +08:00
04b74a967b
* fix: consistency across action buttons dialogs * chore: improve MCP dialog and add analytics * fix: dialog height and scroll area
26 lines
738 B
TypeScript
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>
|
|
);
|
|
}
|