Files
mtdb_movie/common/resources/client/billing/upgrade/feature-locked-dialog.tsx
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01:00

26 lines
596 B
TypeScript
Executable File

import {Trans} from '@common/i18n/trans';
import {ReactNode} from 'react';
import {UpgradeDialog} from '@common/billing/upgrade/upgrade-dialog';
interface FeatureLockedDialogProps {
message?: ReactNode;
messageSuffix?: ReactNode;
}
export function FeatureLockedDialog({
message,
messageSuffix,
}: FeatureLockedDialogProps) {
return (
<UpgradeDialog
message={message}
messageSuffix={
messageSuffix === undefined ? (
<Trans message="Upgrade to unlock this feature and many more." />
) : (
messageSuffix
)
}
/>
);
}