// @flow strict import * as React from 'react'; import classify from '../../utils/classify'; import css from './StickyBar.module.css'; export type StickyBarProps = { className?: string, children: React.Node, position?: 'top' | 'bottom', ... }; export type StickyBarChildProps = { className?: string, children: React.Node, ... }; export const StickyBarLeftSlot = ({ className, children, ...props }: StickyBarChildProps): React.Node => (
{children}
); export const StickyBarRightSlot = ({ className, children, ...props }: StickyBarChildProps): React.Node => (
{children}
); export const StickyBar: React$AbstractComponent< StickyBarProps, HTMLDivElement, > = React.forwardRef( ( {className, children, position = 'bottom', ...props}: StickyBarProps, ref, ) => (
{children}
), );