import { lexicalEditorWrapper } from "@/lib/utils/lexical.editor";
import { Tab } from "payload";

export const currentPrice: Tab = {
  name: 'currentPrice',
  interfaceName: 'aboutUsCurrentPrice',
  label: 'Current Price',
  fields: [
    {
      name: 'title',
      type: 'text',
      localized: true,
      label: 'Title',
      required: true,
    },
    {
      name: 'description',
      type: 'richText',
      localized: true,
      label: 'Description',
      required: true,
      editor: lexicalEditorWrapper,
      
    },
    {
      name: 'bg',
      type: 'upload',
      relationTo: 'media',
      label: 'Background',
      required: true,
    }
  ]
}