17 lines
385 B
TypeScript
17 lines
385 B
TypeScript
/**
|
|
* The signed-in user's follows, from their context.
|
|
*
|
|
* @module
|
|
*/
|
|
|
|
import { useContext } from "react";
|
|
import {
|
|
FollowContext,
|
|
type FollowContextValue,
|
|
} from "../../contexts/social/FollowContext.ts";
|
|
|
|
/** Returns whom and what the signed-in user follows, and a way to change it. */
|
|
export function useFollows(): FollowContextValue {
|
|
return useContext(FollowContext);
|
|
}
|