import { ENDPOINTS } from '@/constants/endpoints';
import { createEntityHook } from './useEntityBase';

export type SystemSetting = {
  id: string;
  key: string;
  value: string | null;
  description: string | null;
  is_feature_flag: boolean;
  enabled: boolean;
  environment: string | null;
  created_at: string;
};

export const useSettings = createEntityHook<SystemSetting, any, any>('SETTINGS', ENDPOINTS.SETTINGS.LIST);
