mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
* icon and wording changes * fix inconsistencies and grammar * fix(ui/buttons): show tooltip * Change icon and confirmation dialog * edit icon * rename be-only-button to be-teaser-button for consistency Co-authored-by: Chaim Lev-Ari <chaim.levi-ari@portainer.io>
46 lines
894 B
TypeScript
46 lines
894 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 BETeaserButton({
|
|
featureId,
|
|
heading,
|
|
message,
|
|
buttonText,
|
|
className,
|
|
icon,
|
|
}: Props) {
|
|
return (
|
|
<TooltipWithChildren
|
|
className={className}
|
|
heading={heading}
|
|
BEFeatureID={featureId}
|
|
message={message}
|
|
>
|
|
<span>
|
|
<Button
|
|
icon={icon}
|
|
type="button"
|
|
color="warninglight"
|
|
size="small"
|
|
onClick={() => {}}
|
|
disabled
|
|
>
|
|
{buttonText}
|
|
</Button>
|
|
</span>
|
|
</TooltipWithChildren>
|
|
);
|
|
}
|