import type { PropsWithChildren, RefAttributes } from "react"; import { cross } from "@simplybusiness/icons"; import type { DOMProps } from "../../types/dom"; import { Button } from "../Button"; import { Icon } from "../Icon"; import { useDrawer } from "./useDrawer"; export type HeaderElementType = HTMLDivElement; export interface HeaderProps extends DOMProps, RefAttributes, PropsWithChildren {} const Header = ({ ref, children, ...otherProps }: HeaderProps) => { const { onClose, closeLabel, headerId } = useDrawer(); return (

{children}

); }; Header.displayName = "Header"; export { Header };