689 B22 lines
Blame
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8import React from 'react';
9import {InlineBadge} from './InlineBadge';
10import {t} from './i18n';
11
12/** The "(You are here)" blue label. Supports customized styles and children. */
13export function YouAreHereLabel(props: {title?: string} & React.HTMLAttributes<HTMLDivElement>) {
14 const {title = t('You are here'), children, ...rest} = props;
15 return (
16 <div className="you-are-here-container" {...rest}>
17 <InlineBadge kind="primary">{title}</InlineBadge>
18 {children}
19 </div>
20 );
21}
22