Debian Codegraph @

node/@patternfly/react-core/src/components/AboutModal/AboutModalBoxBrand.tsx

raw
1 import { css } from '@patternfly/react-styles';
2 import styles from '@patternfly/react-styles/css/components/AboutModalBox/about-modal-box';
3
4 export interface AboutModalBoxBrandProps extends React.HTMLProps<HTMLDivElement> {
5 /** The URL of the image for the brand. */
6 src: string;
7 /** The alternate text of the brand image. */
8 alt: string;
9 }
10
11 export const AboutModalBoxBrand: React.FunctionComponent<AboutModalBoxBrandProps> = ({
12 src,
13 alt,
14 ...props
15 }: AboutModalBoxBrandProps) => (
16 <div className={css(styles.aboutModalBoxBrand)} {...props}>
17 <img className={css(styles.aboutModalBoxBrandImage)} src={src} alt={alt} />
18 </div>
19 );
20 AboutModalBoxBrand.displayName = 'AboutModalBoxBrand';