mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-18 08:12:20 -05:00
ebc04e4a9d
[web] Migrate cancel subscription to React GitOrigin-RevId: 8482fd61894c8011b4c980263ae1d41f396233c6
13 lines
395 B
TypeScript
13 lines
395 B
TypeScript
import freeTrialExpiresUnderSevenDays from './free-trial-expires-under-seven-days'
|
|
import isMonthlyCollaboratorPlan from './is-monthly-collaborator-plan'
|
|
|
|
export default function canExtendTrial(
|
|
planCode: string,
|
|
isGroupPlan?: boolean,
|
|
trialEndsAt?: string | null
|
|
) {
|
|
return (
|
|
isMonthlyCollaboratorPlan(planCode, isGroupPlan) &&
|
|
freeTrialExpiresUnderSevenDays(trialEndsAt)
|
|
)
|
|
}
|