mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 17:43:49 +08:00

* fix: enforce type imports so that the bundler ignores types * chore: add changeset * fix: export types with export type keyword
28 lines
435 B
TypeScript
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} />
|
|
))}
|
|
</>
|
|
)
|
|
}
|