(viewId: string)
| 64 | const activeView = doc.views.find((v) => v.id === doc.activeViewId) ?? doc.views[0] |
| 65 | |
| 66 | const viewMenuItems = (viewId: string): ContextMenuItem[] => [ |
| 67 | { label: 'Rename view', onSelect: () => setRenamingView(viewId) }, |
| 68 | { |
| 69 | label: 'Delete view', |
| 70 | danger: true, |
| 71 | disabled: doc.views.length <= 1, |
| 72 | onSelect: () => updateDatabaseSchema(csvPath, removeView(doc, viewId)) |
| 73 | } |
| 74 | ] |
| 75 | |
| 76 | return ( |
| 77 | <div className="flex min-h-0 flex-1 flex-col bg-paper-100 text-ink-900"> |
no test coverage detected