bigbuffet-rw/app/soapbox/hooks/useFeatures.ts

10 lines
271 B
TypeScript
Raw Normal View History

2022-11-26 08:38:16 -08:00
import { getFeatures, Features } from 'soapbox/utils/features';
2022-03-30 13:50:16 -07:00
2022-11-26 08:38:16 -08:00
import { useInstance } from './useInstance';
2022-03-30 13:50:16 -07:00
2022-11-26 08:38:16 -08:00
/** Get features for the current instance. */
2022-03-30 13:50:16 -07:00
export const useFeatures = (): Features => {
2022-11-26 08:38:16 -08:00
const instance = useInstance();
return getFeatures(instance);
2022-03-30 13:50:16 -07:00
};