1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00
portainer/app/react/components/BETeaserButton.tsx
Prabhat Khera defce0cf6d
feat(kuberenetes): add annotations to kube objects EE-4089 (#8499)
* add annotations BE teaser
* fix settings icon click on home screen for kube env
* add debouce to namespace validation
* ingress button tooltip fixed
* fix tooltip text
2023-03-01 13:11:12 +13:00

49 lines
979 B
TypeScript

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>
);
}