This commit is contained in:
2025-11-18 16:39:33 +00:00
parent c70394d367
commit df1f90c6cd
9673 changed files with 3464697 additions and 34 deletions
@@ -0,0 +1,25 @@
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
});