import { composeRefs } from "@radix-ui/react-compose-refs"; import { mergeProps } from "@seed-design/dom-utils"; import { Primitive, type PrimitiveProps } from "@seed-design/react-primitive"; import { forwardRef } from "react"; import { appBarAnatomy } from "./anatomy"; import { useAppBar, type UseAppBarProps } from "./useAppBar"; import { AppBarProvider, useAppBarContext } from "./useAppBarContext"; export interface AppBarRootProps extends PrimitiveProps, UseAppBarProps, React.HTMLAttributes {} export const AppBarRoot = forwardRef((props, ref) => { const { ...otherProps } = props; const api = useAppBar({}); return ( ); }); AppBarRoot.displayName = "AppBarRoot"; export interface AppBarLeftProps extends PrimitiveProps, React.HTMLAttributes {} export const AppBarLeft = forwardRef((props, ref) => { const { refs, stateProps } = useAppBarContext(); return ; }); AppBarLeft.displayName = "AppBarLeft"; export interface AppBarRightProps extends PrimitiveProps, React.HTMLAttributes {} export const AppBarRight = forwardRef((props, ref) => { const { refs, stateProps } = useAppBarContext(); return ; }); AppBarRight.displayName = "AppBarRight"; export interface AppBarMainProps extends PrimitiveProps, React.HTMLAttributes {} export const AppBarMain = forwardRef((props, ref) => { const { stateProps } = useAppBarContext(); return ( ); });