* refactor: move Segment, BookerLayoutSelector, CreateLicenseKeyForm from packages/features to apps/web/modules Co-Authored-By: benny@cal.com <sldisek783@gmail.com> * fix: update relative imports to absolute paths in moved files Co-Authored-By: benny@cal.com <sldisek783@gmail.com> * refactor: move useBookingLocation and blocklist components from packages/features to apps/web/modules Co-Authored-By: benny@cal.com <sldisek783@gmail.com> * refactor: move EmbedTabs and embed hooks from packages/features to apps/web/modules Co-Authored-By: benny@cal.com <sldisek783@gmail.com> * fix * migrate useBookerUrl * migrate embed tabs * fix * fix * fix * mv ThemeLabel * mv settings headers to webn * update imports * clean up --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
25 lines
759 B
TypeScript
25 lines
759 B
TypeScript
"use client";
|
|
|
|
import { FeaturesSettings } from "@calcom/features/feature-opt-in/components/FeaturesSettings";
|
|
import SettingsHeader from "@calcom/web/modules/settings/components/SettingsHeader";
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import type { ReactElement } from "react";
|
|
|
|
import { useUserFeatureOptIn } from "~/feature-opt-in/hooks/useUserFeatureOptIn";
|
|
|
|
const FeaturesView = (): ReactElement => {
|
|
const { t } = useLocale();
|
|
const featureOptIn = useUserFeatureOptIn();
|
|
|
|
return (
|
|
<SettingsHeader
|
|
title={t("features")}
|
|
description={t("feature_opt_in_description")}
|
|
borderInShellHeader={true}>
|
|
<FeaturesSettings featureOptIn={featureOptIn} />
|
|
</SettingsHeader>
|
|
);
|
|
};
|
|
|
|
export default FeaturesView;
|