1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 22:39:41 +02:00
portainer/app/kubernetes/react/views/beOnlyButton/index.tsx
Matt Hook 2188005b48
feat(kubernetes): add rolling restart button teaser [EE-4510] (#8126)
* rolling restart teaser button

* add be only rolling restart

* move position of button
2022-12-12 14:30:05 +13:00

44 lines
845 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;
}
export function BEOnlyButton({
featureId,
heading,
message,
buttonText,
className,
icon,
}: Props) {
return (
<TooltipWithChildren
className={className}
heading={heading}
BEFeatureID={featureId}
message={message}
>
<Button
icon={icon}
type="button"
color="warninglight"
size="small"
onClick={() => {}}
disabled
>
{buttonText}
</Button>
</TooltipWithChildren>
);
}