aboutsummaryrefslogblamecommitdiffstats
path: root/packages/website/ts/components/onboarding/onboarding_tooltip.tsx
blob: d8065625d50a688c91690d23b282e5763285e9f4 (plain) (tree)
1
2
3
4
5
6
7
8
9

                               
                                                                                               
                                                                     
 

                                                           
                                                                     
                       
                                        

 







                                                                                             



                                  
                                                    
import * as React from 'react';

import { OnboardingCard, OnboardingCardProps } from 'ts/components/onboarding/onboarding_card';
import { Pointer, PointerDirection } from 'ts/components/ui/pointer';

export type ContinueButtonDisplay = 'enabled' | 'disabled';

export interface OnboardingTooltipProps extends OnboardingCardProps {
    className?: string;
    pointerDirection?: PointerDirection;
}

export const OnboardingTooltip: React.StatelessComponent<OnboardingTooltipProps> = props => {
    const { pointerDirection, className, ...cardProps } = props;
    return (
        <Pointer className={className} direction={pointerDirection}>
            <OnboardingCard {...cardProps} />
        </Pointer>
    );
};
OnboardingTooltip.defaultProps = {
    pointerDirection: 'left',
};

OnboardingTooltip.displayName = 'OnboardingTooltip';