Files
portainer/app/react/components/BETeaserButton.tsx
T
2025-12-17 13:02:19 +02:00

51 lines
1.1 KiB
TypeScript

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