Add basic page to configure the alias

This commit is contained in:
Owen
2026-07-31 17:47:45 -04:00
parent 56e59a93f3
commit 42c0abedb7
5 changed files with 151 additions and 1 deletions
@@ -76,6 +76,37 @@ type PrivateResourceHostDestinationFieldsProps = {
hideAlias?: boolean;
};
type PrivateResourceInferenceDestinationFieldsProps = {
control: Control<any>;
watch: UseFormWatch<any>;
labelPrefix?: "create" | "edit";
hideAlias?: boolean;
};
export function PrivateResourceInferenceDestinationFields({
control,
watch,
labelPrefix = "edit"
}: PrivateResourceInferenceDestinationFieldsProps) {
const t = useTranslations();
const destinationLabelKey =
labelPrefix === "create"
? "createInternalResourceDialogDestination"
: "editInternalResourceDialogDestination";
return (
<SettingsFormGrid>
<SettingsFormCell span="half">
<PrivateResourceAliasField
control={control}
watch={watch}
labelPrefix={labelPrefix}
/>
</SettingsFormCell>
</SettingsFormGrid>
);
}
export function PrivateResourceHostDestinationFields({
control,
watch,