27 lines
902 B
TypeScript
27 lines
902 B
TypeScript
// @subframe/sync-disable
|
|
"use client";
|
|
import React from "react";
|
|
import { FullscreenDialog as FullscreenDialogComponent } from "./FullscreenDialog";
|
|
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
|
|
*/
|
|
|
|
export const FullscreenDialog = React.forwardRef<
|
|
React.ElementRef<typeof FullscreenDialogComponent>,
|
|
React.ComponentProps<typeof FullscreenDialogComponent>
|
|
>(function FullscreenDialog({ className, ...otherProps }, ref) {
|
|
return (
|
|
<FullscreenDialogComponent
|
|
className={SubframeUtils.twClassNames(MODAL_LAYER_CLASS, className)}
|
|
data-ui-layer="modal"
|
|
ref={ref}
|
|
{...otherProps}
|
|
/>
|
|
);
|
|
});
|