list-context.ts 423 B

123456789101112131415
  1. import React from 'react';
  2. import { RowProps } from '../grid/row';
  3. import { ColProps } from '../grid/col';
  4. export interface Grid extends RowProps, ColProps {}
  5. export interface ListContextValue {
  6. onRightClick?: React.MouseEventHandler<HTMLLIElement>;
  7. onClick?: React.MouseEventHandler<HTMLLIElement>;
  8. grid?: Grid;
  9. }
  10. const ListContext = React.createContext<ListContextValue>(null);
  11. export default ListContext;