467 B21 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 type {ReactNode} from 'react';
9
10import './InlineBadge.css';
11
12export function InlineBadge({
13 children,
14 kind,
15}: {
16 children: ReactNode;
17 kind?: 'primary' | 'secondary';
18}) {
19 return <div className={`inline-badge badge-${kind ?? 'secondary'}`}>{children}</div>;
20}
21