import { PropsWithChildren } from 'react';
import clsx from 'clsx';
import styles from './StickyFooter.module.css';
interface Props {
className?: string;
}
/**
* Fixed action bar pinned to the bottom of the viewport.
*
* Wrap the page content in `StickyFooter.Container` so the footer never
* obscures the last element:
*
* ```tsx
*
*
*
* ```
*/
export function StickyFooter({
className,
children,
}: PropsWithChildren) {
return (
{children}
);
}
/**
* Wraps page content to prevent `StickyFooter` from overlapping the bottom
* of the page. Always use this as the outermost wrapper when rendering a
* `StickyFooter` inside a page or form.
*/
function Container({ children }: PropsWithChildren) {
return {children}
;
}
StickyFooter.Container = Container;