Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

411 B
Raw Blame
import { DEFAULT_COST_ESTIMATE_WARNING_THRESHOLD } from '@lobechat/const';

import type { UserStore } from '../../../store';
import { currentSettings } from './settings';

const costEstimateWarningThreshold = (s: UserStore) =>
  currentSettings(s).general.costEstimateWarningThreshold ??
  DEFAULT_COST_ESTIMATE_WARNING_THRESHOLD;

export const userUsageSettingsSelectors = {
  costEstimateWarningThreshold,
};