// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; import * as stylex from '@stylexjs/stylex'; import {Breadcrumbs, BreadcrumbItem} from '@astryxdesign/core/Breadcrumbs'; import {Stack} from '@astryxdesign/core/Layout'; import {Text} from '@astryxdesign/core/Text'; import {rtlStyles} from '@astryxdesign/core/utils'; // Only a glyph the bidi algorithm does not already flip needs rtlStyles.mirror. // U+203A has Unicode Bidi_Mirrored=Yes, so the browser mirrors it under RTL on // its own and a second flip would point it back the wrong way; U+2192 has // Bidi_Mirrored=No and stays pointing left-to-right unless we mirror it. const SEPARATORS = [ {char: '›', label: 'Chevron', needsRtlMirror: false}, {char: '→', label: 'Arrow', needsRtlMirror: true}, {char: '·', label: 'Dot', needsRtlMirror: false}, ]; export default function BreadcrumbsCustomSeparator() { return ( {SEPARATORS.map(({char, label, needsRtlMirror}) => ( {label} {char} ) : ( char ) }> Home Docs API Reference ))} ); }