* refactor: move Segment, BookerLayoutSelector, CreateLicenseKeyForm from packages/features to apps/web/modules Co-Authored-By: [email protected] <[email protected]> * fix: update relative imports to absolute paths in moved files Co-Authored-By: [email protected] <[email protected]> * refactor: move useBookingLocation and blocklist components from packages/features to apps/web/modules Co-Authored-By: [email protected] <[email protected]> * refactor: move EmbedTabs and embed hooks from packages/features to apps/web/modules Co-Authored-By: [email protected] <[email protected]> * 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>
29 lines
936 B
TypeScript
29 lines
936 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 { useOrganizationFeatureOptIn } from "~/feature-opt-in/hooks/useOrganizationFeatureOptIn";
|
|
|
|
interface OrganizationFeaturesViewProps {
|
|
canEdit: boolean;
|
|
}
|
|
|
|
const OrganizationFeaturesView = ({ canEdit }: OrganizationFeaturesViewProps): ReactElement => {
|
|
const { t } = useLocale();
|
|
const featureOptIn = useOrganizationFeatureOptIn();
|
|
|
|
return (
|
|
<SettingsHeader
|
|
title={t("features")}
|
|
description={t("feature_opt_in_org_description")}
|
|
borderInShellHeader={true}>
|
|
<FeaturesSettings featureOptIn={featureOptIn} canEdit={canEdit} />
|
|
</SettingsHeader>
|
|
);
|
|
};
|
|
|
|
export default OrganizationFeaturesView;
|