mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-10-23 08:00:32 +02:00
refactor device to editor interface and derive styles panel
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user