import type { VbenFormProps } from '#/adapter/form';

export function useCardListForm(userFormOptions?: VbenFormProps) {
  const defaultFormOptions: VbenFormProps = {
    collapsed: false,
    wrapperClass: 'grid-cols-4',
    showCollapseButton: false,
    submitOnChange: true,
    submitOnEnter: false,
  };

  const formOptions: VbenFormProps = {
    ...defaultFormOptions,
    ...userFormOptions,
  };

  return { formOptions };
}
