Files
payload/test/lexical-mdx/collections/Posts/shared.ts
Germán Jabloñski 251c4c30d7 chore: fix path and samples for lexical-mdx tests (#9433)
Later we could add better examples that test complex use cases, but at
least this allows the code to compile.
2024-11-22 14:55:39 +00:00

21 lines
433 B
TypeScript

import path from 'path'
import { fileURLToPath } from 'url'
export const docsBasePath =
typeof window === 'undefined'
? path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../sampleDocs')
: null
export const languages = {
ts: 'TypeScript',
plaintext: 'Plain Text',
tsx: 'TSX',
js: 'JavaScript',
jsx: 'JSX',
}
export const bannerTypes = {
success: 'Success',
info: 'Info',
warning: 'Warning',
}