UNPKG

saagie-ui

Version:

Saagie UI from Saagie Design System

30 lines (24 loc) 669 B
import React from 'react'; import PropTypes from 'prop-types'; import { Container } from '../container/Container'; import { usePageContext } from './Page'; const propTypes = { children: PropTypes.node, tag: PropTypes.elementType, }; const defaultProps = { children: '', tag: 'div', }; export const PageFooter = ({ children, tag: Tag }) => { const { size, gutterHorizontal } = usePageContext(); return ( <Tag className="sui-l-app-layout__page-footer"> <Container size={size} gutterHorizontal={gutterHorizontal}> {children} </Container> </Tag> ); }; PageFooter.propTypes = propTypes; PageFooter.defaultProps = defaultProps;