|
1
|
import { HttpTypes } from "@medusajs/types" |
|
2
|
|
|
3
|
export const LOYALTY_PLUGIN_NAME = "@medusajs/loyalty-plugin" |
|
4
|
|
|
5
|
export const getLoyaltyPlugin = (plugins: HttpTypes.AdminPlugin[]) => { |
|
6
|
return plugins?.find((plugin) => plugin.name === LOYALTY_PLUGIN_NAME) |
|
7
|
} |