import type { ReactNode } from 'react' import React, { type HTMLAttributes } from 'react' import { Icon, IconButton, type IconButtonProps } from '../../' export interface SlideOverHeaderProps extends Omit, 'title'> { /** * A react component to be used as the title in the header. */ children?: ReactNode /** * Props for the Close Button component. */ closeBtnProps?: Partial> /** * Function called when Close Button is clicked. */ onClose: () => void } const SlideOverHeader = ({ children, closeBtnProps = {}, onClose, ...otherProps }: SlideOverHeaderProps) => { return (
{children} } onClick={onClose} {...closeBtnProps} />
) } export default SlideOverHeader