I have this piece of code:
<ArrayField
path={path}
field={{
type: "array",
name: path,
// Make this dynamic
label: "dynamic",
fields: props.field.fields[0].fields,
}}
readOnly={true}
permissions={true}
/>
Is it possible to make the label dynamic based on an array item?
I use this code to fill each row:
const { value, setValue } = useField<variants>({ path, validate: () => true });