()
| 21 | } |
| 22 | |
| 23 | const DefinitionPane: React.FC = () => { |
| 24 | const { focusedBookTab } = useReaderSnapshot() |
| 25 | const t = useTranslation('annotation') |
| 26 | |
| 27 | return ( |
| 28 | <Pane headline={t('definitions')} preferredSize={120}> |
| 29 | {focusedBookTab?.book.definitions.map((d) => { |
| 30 | return ( |
| 31 | <Row |
| 32 | key={d} |
| 33 | onDelete={() => { |
| 34 | reader.focusedBookTab?.undefine(d) |
| 35 | }} |
| 36 | > |
| 37 | {d} |
| 38 | </Row> |
| 39 | ) |
| 40 | })} |
| 41 | </Pane> |
| 42 | ) |
| 43 | } |
| 44 | |
| 45 | const AnnotationPane: React.FC = () => { |
| 46 | const { focusedBookTab } = useReaderSnapshot() |
nothing calls this directly
no test coverage detected