fa38c0ef0d
* Example project, fix bugs in readonly mode * Adds ui options
14 lines
344 B
TypeScript
14 lines
344 B
TypeScript
import * as React from 'react'
|
|
import { TLDraw, useFileSystem } from '@tldraw/tldraw'
|
|
|
|
export default function FileSystem(): JSX.Element {
|
|
const fileSystemEvents = useFileSystem()
|
|
|
|
// Use the Menu > File to create, open, and save .tldr files.
|
|
|
|
return (
|
|
<div className="tldraw">
|
|
<TLDraw {...fileSystemEvents} />
|
|
</div>
|
|
)
|
|
}
|