mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-05 02:02:06 -05:00
14 lines
395 B
TypeScript
14 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)
|
||
|
)
|
||
|
}
|