Debian Codegraph @

node/@patternfly/react-core/src/components/Compass/CompassMainFooter.tsx

raw
1 import styles from '@patternfly/react-styles/css/components/Compass/compass';
2 import { css } from '@patternfly/react-styles';
3
4 interface CompassMainFooterProps extends Omit<React.HTMLProps<HTMLDivElement>, 'title'> {
5 /** Additional classes added to the main footer */
6 className?: string;
7 /** Main footer content */
8 children?: React.ReactNode;
9 /** Indicates if the main footer is expanded */
10 isExpanded?: boolean;
11 }
12
13 export const CompassMainFooter: React.FunctionComponent<CompassMainFooterProps> = ({
14 className,
15 children,
16 isExpanded = true,
17 ...props
18 }) => (
19 <div className={css(styles.compassMainFooter, isExpanded && 'pf-m-expanded', className)} {...props}>
20 {children}
21 </div>
22 );
23
24 CompassMainFooter.displayName = 'CompassMainFooter';