From c1f4a60b0016242a9097357074730f0cc9c151ba Mon Sep 17 00:00:00 2001
From: sharkiecodes <lanyi_stroud@brown.edu>
Date: Thu, 22 May 2025 23:48:35 -0400
Subject: presets

---
 .../views/nodes/scrapbook/EmbeddedDocView.tsx      | 52 ----------------------
 1 file changed, 52 deletions(-)
 delete mode 100644 src/client/views/nodes/scrapbook/EmbeddedDocView.tsx

(limited to 'src/client/views/nodes/scrapbook/EmbeddedDocView.tsx')

diff --git a/src/client/views/nodes/scrapbook/EmbeddedDocView.tsx b/src/client/views/nodes/scrapbook/EmbeddedDocView.tsx
deleted file mode 100644
index e99bf67c7..000000000
--- a/src/client/views/nodes/scrapbook/EmbeddedDocView.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-//IGNORE FOR NOW, CURRENTLY NOT USED IN SCRAPBOOK IMPLEMENTATION
-import * as React from "react";
-import { observer } from "mobx-react";
-import { Doc } from "../../../../fields/Doc";
-import { DocumentView } from "../DocumentView";
-import { Transform } from "../../../util/Transform";
-
-interface EmbeddedDocViewProps {
-    doc: Doc;
-    width?: number;
-    height?: number;
-    slotId?: string;
-}
-
-@observer
-export class EmbeddedDocView extends React.Component<EmbeddedDocViewProps> {
-    render() {
-        const { doc, width = 300, height = 200, slotId } = this.props;
-        
-        // Use either an existing embedding or create one
-        let docToDisplay = doc;
-        
-        // If we need an embedding, create or use one
-        if (!docToDisplay.isEmbedding) {
-            docToDisplay = Doc.BestEmbedding(doc) || Doc.MakeEmbedding(doc);
-            // Set the container to the slot's ID so we can track it
-            if (slotId) {
-                docToDisplay.embedContainer = `scrapbook-slot-${slotId}`;
-            }
-        }
-        
-        return (
-            <DocumentView 
-                Document={docToDisplay}
-                renderDepth={0}
-                // Required sizing functions
-                NativeWidth={() => width}
-                NativeHeight={() => height}
-                PanelWidth={() => width}
-                PanelHeight={() => height}
-                // Required state functions
-                isContentActive={() => true}
-                childFilters={() => []}
-                ScreenToLocalTransform={() => new Transform()}
-                // Display options
-                hideDeleteButton={true}
-                hideDecorations={true}
-                hideResizeHandles={true}
-            />
-        );
-    }
-}
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

