* migrate booker layout selector * move schedule hooks and types * migrate feature opt in components * migrate feedback dialog * update * migrate schedule hooks * migrate useSegments * update * update import paths * fix import paths * mv useTimesForSchedule back to features * fix
29 lines
914 B
TypeScript
29 lines
914 B
TypeScript
"use client";
|
|
|
|
import { FeaturesSettings } from "~/feature-opt-in/components/FeaturesSettings";
|
|
import SettingsHeader from "@calcom/features/settings/appDir/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;
|