simian 0.1.1

A command-line tool for exploring and implementing Machine Learning algorithms in Rust.
Documentation
import { createContext, useContext } from 'react'

import { BlockElement } from './types'

interface BlockContextValue {
  blockId: string
  element: BlockElement
  isResizable: boolean
  width?: string
}

export const BlockContext = createContext<BlockContextValue>({
  blockId: 'main',
  isResizable: false,
  element: {} as never,
})

export function useBlock() {
  return useContext(BlockContext)
}