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