import type { FieldMap } from '@payloadcms/ui/utilities/buildComponentMap'
import type { FormState } from 'payload/types'

export type Props = {
  drawerSlug: string
  fieldMap: FieldMap
  handleClose: () => void
  handleModalSubmit: (fields: FormState, data: Record<string, unknown>) => void
  initialState?: FormState
}
