9 lines
271 B
TypeScript
9 lines
271 B
TypeScript
import { getFeatures, Features } from 'soapbox/utils/features';
|
|
|
|
import { useInstance } from './useInstance';
|
|
|
|
/** Get features for the current instance. */
|
|
export const useFeatures = (): Features => {
|
|
const instance = useInstance();
|
|
return getFeatures(instance);
|
|
};
|