mirror of https://github.com/coder/coder.git
30 lines
911 B
TypeScript
30 lines
911 B
TypeScript
import { useDashboard } from "components/Dashboard/DashboardProvider"
|
|
import { useDeploySettings } from "components/DeploySettingsLayout/DeploySettingsLayout"
|
|
import { FC } from "react"
|
|
import { Helmet } from "react-helmet-async"
|
|
import { pageTitle } from "util/page"
|
|
import { SecuritySettingsPageView } from "./SecuritySettingsPageView"
|
|
|
|
const SecuritySettingsPage: FC = () => {
|
|
const { deploymentValues: deploymentValues } = useDeploySettings()
|
|
const { entitlements } = useDashboard()
|
|
|
|
return (
|
|
<>
|
|
<Helmet>
|
|
<title>{pageTitle("Security Settings")}</title>
|
|
</Helmet>
|
|
|
|
<SecuritySettingsPageView
|
|
options={deploymentValues.options}
|
|
featureAuditLogEnabled={entitlements.features["audit_log"].enabled}
|
|
featureBrowserOnlyEnabled={
|
|
entitlements.features["browser_only"].enabled
|
|
}
|
|
/>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default SecuritySettingsPage
|