tiptap/demos/src/Tutorials/1-3-yjs_lexical/Lexical-React/index.tsx
Arnau Gómez Farell 89bd9c7d29
Fix/enforce-type-imports-so-that-bundler-ignores-types (#6132)
* fix: enforce type imports so that the bundler ignores types

* chore: add changeset

* fix: export types with export type keyword
2025-03-03 15:15:30 +01:00

28 lines
435 B
TypeScript

import './styles.css'
import React from 'react'
import Note from './Note.jsx'
import type { TNote } from './types.js'
const notes: TNote[] = [
{
id: 'note-1',
defaultContent: 'some random note text',
},
{
id: 'note-2',
defaultContent: 'some really random note text',
},
]
export default () => {
return (
<>
{notes.map(note => (
<Note note={note} key={note.id} />
))}
</>
)
}