mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
15 lines
481 B
TypeScript
15 lines
481 B
TypeScript
import useProjectOverview from './api/getters/useProjectOverview/useProjectOverview';
|
|
|
|
const DEFAULT_STICKINESS = 'default';
|
|
export const useDefaultProjectSettings = (projectId: string) => {
|
|
const { project, loading, error } = useProjectOverview(projectId);
|
|
return {
|
|
defaultStickiness: project.defaultStickiness
|
|
? project.defaultStickiness
|
|
: DEFAULT_STICKINESS,
|
|
mode: project.mode,
|
|
loading: loading,
|
|
error,
|
|
};
|
|
};
|