Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

972 B
Raw Blame
import { type FlexboxProps } from '@lobehub/ui';
import { cssVar, Flexbox } from '@lobehub/ui';
import { type ReactNode } from 'react';
import { memo } from 'react';

interface OnboardingFooterActionsProps extends Omit<FlexboxProps, 'children'> {
  left?: ReactNode;
  right?: ReactNode;
}

const OnboardingFooterActions = memo<OnboardingFooterActionsProps>(
  ({ left, right, style, ...rest }) => {
    return (
      <Flexbox
        horizontal
        align={'center'}
        justify={'space-between'}
        style={{
          background: cssVar.colorBgContainer,
          bottom: 0,
          marginTop: 'auto',
          paddingTop: 16,
          position: 'sticky',
          width: '100%',
          zIndex: 10,
          ...style,
        }}
        {...rest}
      >
        <div>{left}</div>
        <div>{right}</div>
      </Flexbox>
    );
  },
);

OnboardingFooterActions.displayName = 'OnboardingFooterActions';

export default OnboardingFooterActions;