mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
26 lines
861 B
TypeScript
26 lines
861 B
TypeScript
|
import { ActiveSubscription } from '../../../../../frontend/js/features/subscription/components/dashboard/states/active/active'
|
||
|
import { Subscription } from '../../../../../types/subscription/dashboard/subscription'
|
||
|
import { plans } from '../fixtures/plans'
|
||
|
import { renderWithSubscriptionDashContext } from './render-with-subscription-dash-context'
|
||
|
|
||
|
export function renderActiveSubscription(
|
||
|
subscription: Subscription,
|
||
|
tags: { name: string; value: string | object | Array<object> }[] = []
|
||
|
) {
|
||
|
const renderOptions = {
|
||
|
metaTags: [
|
||
|
...tags,
|
||
|
{ name: 'ol-plans', value: plans },
|
||
|
{ name: 'ol-subscription', value: subscription },
|
||
|
{
|
||
|
name: 'ol-recommendedCurrency',
|
||
|
value: 'USD',
|
||
|
},
|
||
|
],
|
||
|
}
|
||
|
renderWithSubscriptionDashContext(
|
||
|
<ActiveSubscription subscription={subscription} />,
|
||
|
renderOptions
|
||
|
)
|
||
|
}
|