import { Form, useFormikContext } from 'formik'; import { ImageConfigFieldset } from '@@/ImageConfigFieldset'; import { LoadingButton } from '@@/buttons'; import { FormValues } from './types'; export function CreateImageForm({ onRateLimit, isLoading, }: { onRateLimit: (limited?: boolean) => void; isLoading: boolean; }) { const { values, setFieldValue, errors, isValid } = useFormikContext(); return (
You can create an image from this container, this allows you to backup important data or save helpful configurations. You'll be able to spin up another container based on this image afterward.
setFieldValue(`config.${field}`, value) } errors={errors.config} onRateLimit={onRateLimit} /> {/* Tag note */}
Note: if you don't specify the tag in the image name,{' '} latest will be used.
Create ); }