"use client"; /* * Documentation: * Breadcrumbs — https://app.subframe.com/f023064a5ca0/library?component=Breadcrumbs_8898334b-a66f-4ee8-8bd1-afcfa8e37cc0 */ import React from "react"; import { FeatherChevronRight } from "@subframe/core"; import * as SubframeUtils from "../../utils"; export interface ItemProps extends React.HTMLAttributes { children?: React.ReactNode; active?: boolean; className?: string; } const Item = React.forwardRef(function Item( { children, active = false, className, ...otherProps }: ItemProps, ref ) { return children ? ( {children} ) : null; }); export interface DividerProps extends React.ComponentProps { className?: string; } const Divider = React.forwardRef< React.ElementRef, DividerProps >(function Divider({ className, ...otherProps }: DividerProps, ref) { return ( ); }); export interface BreadcrumbsRootProps extends React.HTMLAttributes { children?: React.ReactNode; className?: string; } const BreadcrumbsRoot = React.forwardRef( function BreadcrumbsRoot( { children, className, ...otherProps }: BreadcrumbsRootProps, ref ) { return children ? (
{children}
) : null; } ); export const Breadcrumbs = Object.assign(BreadcrumbsRoot, { Item, Divider, });