mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 22:14:29 +09:00
15 lines
325 B
TypeScript
15 lines
325 B
TypeScript
import { publish } from "@webstudio-is/react-sdk";
|
|
import { useEffect } from "react";
|
|
|
|
export const ErrorMessage = ({ message }: { message: string }) => {
|
|
useEffect(() => {
|
|
publish({ type: "canvasWidth", payload: 600 });
|
|
}, []);
|
|
return (
|
|
<div>
|
|
<h1>Error</h1>
|
|
<pre>{message}</pre>
|
|
</div>
|
|
);
|
|
};
|