This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { EditViewComponent, PayloadServerReactComponent } from 'payload' | |
import { EditView } from '@payloadcms/next/views' | |
import React from 'react' | |
import { DocumentDrawerContent } from './DocumentView' | |
const CustomDefaultEditView: PayloadServerReactComponent<EditViewComponent> = () => { | |
return ( | |
<div style={{ display: 'flex' }}> | |
<div style={{ width: '50%' }}> | |
<EditView /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import path from 'path' | |
import { fileURLToPath } from 'url' | |
import { type CollectionConfig } from 'payload' | |
import { videoCoverImage } from './hooks/videoCoverImage' | |
/* eslint-enable */ | |
const __filename = fileURLToPath(import.meta.url) | |
const __dirname = path.dirname(__filename) | |
// eslint-disable-next-line @typescript-eslint/ban-ts-comment |