// Copyright 2017-2025 @polkadot/react-components authors & contributors // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import Button from './Button/index.js'; import { styled } from './styled.js'; interface Props { buttons?: React.ReactNode; children: React.ReactNode; className?: string; dataTestId?: string; offset?: number | string; onClose?: () => void; position: 'left' | 'right'; sidebarRef: React.RefObject; } function Sidebar ({ buttons, children, className = '', dataTestId = '', onClose, position, sidebarRef }: Props): React.ReactElement { return ( {buttons}