598 B26 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 './IconStack.css';
9
10/**
11 * Render two Icons on top of each other, the top one half-sized in the bottom right corner.
12 */
13export function IconStack({
14 children,
15 ...rest
16}: {children: [React.ReactNode, React.ReactNode]} & React.DetailedHTMLProps<
17 React.HTMLAttributes<HTMLDivElement>,
18 HTMLDivElement
19>) {
20 return (
21 <div className="icon-stack" {...rest}>
22 {children}
23 </div>
24 );
25}
26