/* Copyright 2026 Marimo. All rights reserved. */ import React, { type PropsWithChildren } from "react"; import "./multi-icon.css"; interface MultiIconProps { layerTop?: boolean; } /** * By default, first icon is left untouched, and second icon is layered to the * bottom right. When `layerTop`, second icon is layered to the top left. */ export const MultiIcon = ({ children, layerTop = false, }: PropsWithChildren) => { const [first, second] = React.Children.toArray(children); const positioning = layerTop ? "top-[-2px] left-[-2px]" : "bottom-[-2px] right-[-2px]"; return (
{first}
{second}
); };