teableio/teable

View on GitHub
packages/sdk/src/components/comment/context.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { ListBaseCollaboratorVo } from '@teable/openapi';
import React from 'react';

export interface ICommentContext {
  collaborators: ListBaseCollaboratorVo;
  recordId?: string;
}

export const CommentContext = React.createContext<ICommentContext>({
  collaborators: [],
});