import PluginExtraFields from '@/components/plugin-extra-fields'; import { PageAction, validateLabelNameRegxFor63 } from '@/config'; import { Input as CInput, InputNumber, Select as SealSelect, useAppUtils } from '@gpustack/core-ui'; import { useIntl } from '@umijs/max'; import { Flex, Form } from 'antd'; import { useContext } from 'react'; import { FormContext } from '../config/form-context'; import { FormData } from '../config/types'; const Basic = ({ action, open, showOrgScope = true, onOrgScopeChange }: { action: string; open: boolean; // Hosts that already fix the tenant scope elsewhere (e.g. the instance // create form, which owns the org picker) hide this slot so the storage // is created in the surrounding scope rather than a second, conflicting // one. showOrgScope?: boolean; // Fired on a user selection in the create-scope picker so the host can // reload the org-scoped storage-type list. onOrgScopeChange?: (orgId: number | null | undefined) => void; }) => { const intl = useIntl(); const { getRuleMessage } = useAppUtils(); const { storageClassList } = useContext(FormContext); return ( <>