@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
22 lines • 1.52 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import { STYLES_NAME } from '../../constants/stylesName/stylesName';
import { useMediaDevice } from '../../hooks/useMediaDevice/useMediaDevice';
import { useStyles } from '../../hooks/useStyles/useStyles';
import { ErrorBoundary } from '../../provider/errorBoundary/errorBoundary';
import { FallbackComponent } from '../../provider/errorBoundary/fallbackComponent';
import { FooterStandAlone } from './footerStandAlone';
const FooterComponent = React.forwardRef(({ variant, ctv, extraCt, ...props }, ref) => {
const device = useMediaDevice();
const styles = useStyles(STYLES_NAME.FOOTER, variant, ctv);
const lineSeparatorLineStyles = useStyles(STYLES_NAME.LINE_SEPARATOR, styles.lineSeparator?.[device]?.variant ?? styles.lineSeparator?.variant, extraCt);
return (_jsx(FooterStandAlone, { ref: ref, device: device, lineSeparatorLineStyles: lineSeparatorLineStyles, styles: styles, ...props }));
});
FooterComponent.displayName = 'FooterComponent';
const FooterBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(FooterStandAlone, { ...props, ref: ref }) }), children: _jsx(FooterComponent, { ...props, ref: ref }) }));
/**
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the CheckBox component
*/
const Footer = React.forwardRef(FooterBoundary);
export { Footer };
//# sourceMappingURL=footer.js.map