// Copyright 2017-2022 @polkadot/react-components authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { HeaderProps } from './types'; import React from 'react'; import styled from 'styled-components'; import Button from '../Button'; function Header ({ className = '', header, onClose }: HeaderProps) { return (