MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / extraFeatures

Function extraFeatures

apps/web/pages/api/plans/index.ts:22–35  ·  view source on GitHub ↗
({ price }: { price: string })

Source from the content-addressed store, hash-verified

20}
21
22function extraFeatures({ price }: { price: string }): string[] {
23 if (price === '150' || price === '1500') {
24 return ['Community Support'];
25 } else if (price === '250' || price === '2500') {
26 return ['Priority Support'];
27 } else if (price === '400' || price === '4000') {
28 return [
29 '24-hour support response time',
30 'Optional: Your company featured on the Linen.dev website and GitHub readme',
31 'Prioritized feature requests',
32 ];
33 }
34 return [];
35}
36
37function serializeProduct(product: any) {
38 const { id, name, description, metadata, default_price } = product;

Callers 1

serializeProductFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected