31 lines
958 B
TypeScript
31 lines
958 B
TypeScript
// @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.
|
|
* If you modify this file, disable Subframe sync for it to prevent overwrites.
|
|
* Learn more: https://docs.subframe.com/concepts/syncing-components#wrapping-components
|
|
*/
|
|
|
|
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,
|
|
});
|