Reviewed-on: daoyoucloud/tachybase#979 Co-authored-by: bai.zixv <bai.zixv@foxmail.com> Co-committed-by: bai.zixv <bai.zixv@foxmail.com>
8 lines
159 B
TypeScript
8 lines
159 B
TypeScript
import { useContext } from 'react';
|
|
|
|
import { CommentContext } from './CommentContext';
|
|
|
|
export function useComment() {
|
|
return useContext(CommentContext);
|
|
}
|