Files
CoeurUAPam/wp-content/plugins/hostinger-reach/frontend/vue/data/pluginData.ts
T
2025-11-18 16:39:33 +00:00

26 lines
686 B
TypeScript

import type { Integration } from '@/types/models';
export const HOSTINGER_REACH_ID = 'hostinger-reach';
export const WOOCOMMERCE_ID = 'woocommerce';
export const PLUGIN_STATUSES = {
ACTIVE: 'active',
INACTIVE: 'inactive'
} as const;
export type PluginStatus = (typeof PLUGIN_STATUSES)[keyof typeof PLUGIN_STATUSES];
export interface PluginInfo {
id: string;
icon: string;
isViewFormHidden: boolean;
isEditFormHidden: boolean;
}
export const getPluginInfo = (integration: Integration): PluginInfo => ({
id: integration.id,
icon: integration?.icon || '',
isViewFormHidden: integration?.isViewFormHidden || true,
isEditFormHidden: integration?.isEditFormHidden || false
});