mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
14 lines
348 B
TypeScript
14 lines
348 B
TypeScript
|
import isInFreeTrial from './is-in-free-trial'
|
||
|
import isMonthlyCollaboratorPlan from './is-monthly-collaborator-plan'
|
||
|
|
||
|
export default function showDowngradeOption(
|
||
|
planCode: string,
|
||
|
isGroupPlan?: boolean,
|
||
|
trialEndsAt?: string | null
|
||
|
) {
|
||
|
return (
|
||
|
isMonthlyCollaboratorPlan(planCode, isGroupPlan) &&
|
||
|
!isInFreeTrial(trialEndsAt)
|
||
|
)
|
||
|
}
|