import { Checkbox, Icon, Link, Stack, Text } from "@fluentui/react"; import { CollapsibleSectionComponent } from "Explorer/Controls/CollapsiblePanel/CollapsibleSectionComponent"; import { scrollToSection } from "Explorer/Panes/AddCollectionPanel/AddCollectionPanelUtility"; import React from "react"; import { Action } from "Shared/Telemetry/TelemetryConstants"; import * as TelemetryProcessor from "Shared/Telemetry/TelemetryProcessor"; export interface AdvancedComponentProps { useHashV1: boolean; setUseHashV1: React.Dispatch>; setSubPartitionKeys: React.Dispatch>; } export const AdvancedComponent = (props: AdvancedComponentProps): JSX.Element => { const { useHashV1, setUseHashV1, setSubPartitionKeys } = props; const useHashV1CheckboxOnChange = (isChecked: boolean): void => { setUseHashV1(isChecked); setSubPartitionKeys([]); }; return ( { TelemetryProcessor.traceOpen(Action.ExpandAddGlobalSecondaryIndexPaneAdvancedSection); scrollToSection("collapsibleAdvancedSectionContent"); }} > , isChecked: boolean) => { useHashV1CheckboxOnChange(isChecked); }} /> To ensure compatibility with older SDKs, the created container will use a legacy partitioning scheme that supports partition key values of size only up to 101 bytes. If this is enabled, you will not be able to use hierarchical partition keys.{" "} Learn more ); };