mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-12 13:48:35 +02: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,
|
|
};
|
|
};
|