// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React, { FC, HTMLAttributes, ReactNode } from 'react'; import { BaseProps } from '../Base'; import { StyledPopOverHeader } from './Styled'; export interface PopOverHeaderProps extends Omit, 'css'>, BaseProps { /** The title of the PopOver menu header. */ title?: string; /** The subtitle of the PopOver menu header. */ subtitle?: string | ReactNode; /** The source of the PopOver menu image. */ imgSrc?: string; } export const PopOverHeader: FC> = ({ title, subtitle, imgSrc, ...rest }) => ( {imgSrc && {title}} {title &&

{title}

} {subtitle &&

{subtitle}

}
); export default PopOverHeader;