"use client"; /* * Documentation: * Drawer — https://app.subframe.com/f023064a5ca0/library?component=Drawer_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 DrawerRootProps extends React.ComponentProps { children?: React.ReactNode; open?: boolean; onOpenChange?: (open: boolean) => void; className?: string; } const DrawerRoot = React.forwardRef( function DrawerRoot( { children, className, ...otherProps }: DrawerRootProps, ref ) { return children ? (
{children}
) : null; } ); export const Drawer = Object.assign(DrawerRoot, { Content, });