// 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 { className?: string; header?: React.ReactNode; onClose: () => void; } function Header ({ className = '', header, onClose }: Props): React.ReactElement { return ( {header && (

{header}

)}