MCPcopy Create free account
hub / github.com/pacexy/flow / DefinitionPane

Function DefinitionPane

apps/reader/src/components/viewlets/AnnotationView.tsx:23–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23const 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
45const AnnotationPane: React.FC = () => {
46 const { focusedBookTab } = useReaderSnapshot()

Callers

nothing calls this directly

Calls 4

useReaderSnapshotFunction · 0.90
useTranslationFunction · 0.90
mapMethod · 0.80
undefineMethod · 0.80

Tested by

no test coverage detected