"use client"; /* * Documentation: * Drawer Right — https://app.subframe.com/f023064a5ca0/library?component=Drawer+Right_1e71b2cb-8d72-4e67-b368-8805179e9444 */ import React from "react"; import * as SubframeCore from "@subframe/core"; import * as SubframeUtils from "../../utils"; export interface ContentProps extends React.ComponentProps { children?: React.ReactNode; className?: string; } const Content = React.forwardRef(function Content( { children, className, ...otherProps }: ContentProps, ref ) { return children ? (
{children}
) : null; }); export interface DrawerRightRootProps extends React.ComponentProps { children?: React.ReactNode; open?: boolean; onOpenChange?: (open: boolean) => void; className?: string; } const DrawerRightRoot = React.forwardRef( function DrawerRightRoot( { children, className, ...otherProps }: DrawerRightRootProps, ref ) { return children ? (
{children}
) : null; } ); export const DrawerRight = Object.assign(DrawerRightRoot, { Content, });