refactor device to editor interface and derive styles panel

This commit is contained in:
Ryan Di
2025-10-15 01:58:09 +11:00
parent 8608d7b2e0
commit 1225fcc339
49 changed files with 704 additions and 680 deletions

View File

@@ -12,10 +12,10 @@ const MobileFooter = ({
excalidrawAPI: ExcalidrawImperativeAPI;
excalidrawLib: typeof TExcalidraw;
}) => {
const { useDevice, Footer } = excalidrawLib;
const { useEditorInterface, Footer } = excalidrawLib;
const device = useDevice();
if (device.editor.isMobile) {
const editorInterface = useEditorInterface();
if (editorInterface.formFactor === "phone") {
return (
<Footer>
<CustomFooter