bigbuffet-rw/app/soapbox/hooks/useFeatures.ts
2022-11-26 10:43:46 -06:00

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);
};