import type { CollectionConfig } from 'payload'

// The people who edit the site. Only a signed-in editor can see or change anyone here.
export const Users: CollectionConfig = {
  slug: 'users',
  labels: { singular: { ar: 'محرر', en: 'Editor' }, plural: { ar: 'المحررون', en: 'Editors' } },
  admin: { useAsTitle: 'email', group: { ar: 'الإدارة', en: 'Admin' } },
  auth: { maxLoginAttempts: 5, lockTime: 15 * 60 * 1000 },
  fields: [{ name: 'name', type: 'text', label: { ar: 'الاسم', en: 'Name' } }],
}
