mirror of
https://github.com/directus/directus.git
synced 2026-02-02 21:55:24 -05:00
9 lines
292 B
TypeScript
9 lines
292 B
TypeScript
import { useSettingsStore } from '@/stores';
|
|
import { Settings } from '@directus/shared/types';
|
|
|
|
export default function getSetting(setting: keyof Settings): any {
|
|
const settingsStore = useSettingsStore();
|
|
if (settingsStore.settings) return settingsStore.settings[setting];
|
|
return null;
|
|
}
|