Merge branch 'docs-header-fix' into 'main'
[ProtonMail-WebClient.git] / packages / components / containers / offers / operations / mailTrial2023 / eligibility.ts
blob7a5153a3aba4fae03b7d3cc9324d3ac0408754b9
1 import { PLANS } from '@proton/payments';
2 import { isTrial } from '@proton/shared/lib/helpers/subscription';
3 import type { Subscription } from '@proton/shared/lib/interfaces';
5 interface Props {
6     subscription?: Subscription;
9 const isEligible = ({ subscription }: Props) => {
10     return isTrial(subscription, PLANS.MAIL);
13 export default isEligible;