// @subframe/sync-disable "use client"; import React from "react"; import { Drawer as DrawerComponent } from "./Drawer"; import { MODAL_LAYER_CLASS } from "../../layers"; import { DRAWER_CONTENT_FULL_FROM_RIGHT_MOTION_CLASS, DRAWER_CONTENT_MOTION_CLASS, DRAWER_OVERLAY_MOTION_CLASS } from "../../modal-motion"; 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 DrawerRoot = React.forwardRef< React.ElementRef, React.ComponentProps >(function DrawerRoot({ className, ...otherProps }, ref) { return ( ); }); const DrawerContent = React.forwardRef< React.ElementRef, React.ComponentProps & { motionDirection?: "from-right" | "full-from-right" } >(function DrawerContent({ className, motionDirection = "from-right", ...otherProps }, ref) { return ( ); }); export const Drawer = Object.assign(DrawerRoot, { Content: DrawerContent, });