7 lines
158 B
TypeScript
7 lines
158 B
TypeScript
import { useContext } from 'react';
|
|
import { CommentContext } from './CommentContext';
|
|
|
|
export function useComment() {
|
|
return useContext(CommentContext);
|
|
}
|