You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/components/BETeaserButton.tsx

50 lines
979 B

import { ReactNode } from 'react';
import { FeatureId } from '@/react/portainer/feature-flags/enums';
import { Button } from '@@/buttons';
import { TooltipWithChildren } from '@@/Tip/TooltipWithChildren';
interface Props {
featureId: FeatureId;
heading: string;
message: string;
buttonText: string;
className?: string;
icon?: ReactNode;
buttonClassName?: string;
}
export function BETeaserButton({
featureId,
heading,
message,
buttonText,
className,
icon,
buttonClassName,
}: Props) {
return (
<TooltipWithChildren
className={className}
heading={heading}
BEFeatureID={featureId}
message={message}
>
<span>
<Button
className={buttonClassName}
icon={icon}
type="button"
color="warninglight"
size="small"
onClick={() => {}}
disabled
>
{buttonText}
</Button>
</span>
</TooltipWithChildren>
);
}