import type { AlertConfigItem } from '@/types/response/donation/alertConfig';
import { ALERT_DEFAULTS } from './constants';

export type FormState = Omit<AlertConfigItem, 'id'>;

export type PendingFiles = {
	image: File|null;
	sound: File|null;
};

export const createEmptyForm = (): FormState => ({ ...ALERT_DEFAULTS, message: '{이름}님이 {금액}원을 후원했습니다!' });