dashpresshq/dashpress

View on GitHub
src/frontend/views/settings/Variables/index.tsx

Summary

Maintainability
A
1 hr
Test Coverage
A
100%
import { useSetPageDetails } from "@/frontend/lib/routing/usePageDetails";
import { UserPermissions } from "@/shared/constants/user";

import { BaseSettingsLayout } from "../_Base";
import { SETTINGS_VIEW_KEY } from "../constants";
import { BaseManageVariables, ManageVariablesPageTitle } from "./Base";

export function VariablesSettings() {
  useSetPageDetails({
    pageTitle: ManageVariablesPageTitle,
    viewKey: SETTINGS_VIEW_KEY,
    permission: UserPermissions.CAN_CONFIGURE_APP,
  });

  return (
    <BaseSettingsLayout>
      <BaseManageVariables />
    </BaseSettingsLayout>
  );
}