simian 0.1.1

A command-line tool for exploring and implementing Machine Learning algorithms in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { createContext, useContext } from 'react'

import { MarkId } from './types'

export interface TextContextValue {
  markIds: MarkId[]
}

export const TextContext = createContext<TextContextValue>({
  markIds: [],
})

export function useText() {
  return useContext(TextContext)
}