Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+21
-1
@@ -1,5 +1,9 @@
|
||||
// @subframe/sync-disable
|
||||
"use client";
|
||||
import React from "react";
|
||||
import { ModalBlank as ModalBlankComponent } from "./ModalBlank";
|
||||
import { MODAL_LAYER_CLASS } from "../../layers";
|
||||
import * as SubframeUtils from "../../utils";
|
||||
|
||||
/**
|
||||
* Add wrapper components and business logic here.
|
||||
@@ -7,4 +11,20 @@ import { ModalBlank as ModalBlankComponent } from "./ModalBlank";
|
||||
* Learn more: https://docs.subframe.com/concepts/syncing-components#wrapping-components
|
||||
*/
|
||||
|
||||
export const ModalBlank = ModalBlankComponent;
|
||||
const ModalBlankRoot = React.forwardRef<
|
||||
React.ElementRef<typeof ModalBlankComponent>,
|
||||
React.ComponentProps<typeof ModalBlankComponent>
|
||||
>(function ModalBlankRoot({ className, ...otherProps }, ref) {
|
||||
return (
|
||||
<ModalBlankComponent
|
||||
className={SubframeUtils.twClassNames(MODAL_LAYER_CLASS, className)}
|
||||
data-ui-layer="modal"
|
||||
ref={ref}
|
||||
{...otherProps}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
export const ModalBlank = Object.assign(ModalBlankRoot, {
|
||||
Content: ModalBlankComponent.Content,
|
||||
});
|
||||
Reference in new issue
Block a user