//#region src/render/getRenderData.ts
/**
* Get custom render data that was passed to the render process.
*
* @returns The render data object, or undefined if no data was provided
*
* @example
* ```typescript
* import { getRenderData } from "@editframe/elements";
*
* interface MyRenderData {
*   userName: string;
*   theme: "light" | "dark";
* }
*
* const data = getRenderData<MyRenderData>();
* if (data) {
*   console.log(data.userName);  // "John"
* }
* ```
*/
function getRenderData() {
	if (typeof window !== "undefined" && window.EF_RENDER_DATA) return window.EF_RENDER_DATA;
	if (typeof RENDER_DATA !== "undefined") return RENDER_DATA;
}

//#endregion
export { getRenderData };
//# sourceMappingURL=getRenderData.js.map