Files
medusa-store/packages/admin/dashboard/src/lib/plugins.ts
Riqwan Thamir 44d1d18689 feat(dashboard,types): add credit lines + loyalty changes (#11885)
* feat(dashboard,types): add credit lines + loyalty changes

* chore: fix types

* chore: fix specs

* chore: use correct plugin name

* chore: use new currency input

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-06-12 20:12:03 +02:00

8 lines
254 B
TypeScript

import { HttpTypes } from "@medusajs/types"
export const LOYALTY_PLUGIN_NAME = "@medusajs/loyalty-plugin"
export const getLoyaltyPlugin = (plugins: HttpTypes.AdminPlugin[]) => {
return plugins?.find((plugin) => plugin.name === LOYALTY_PLUGIN_NAME)
}