export type ActionState = { success: boolean error?: string | null data?: T | null }