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

16 lines
290 B
TypeScript
Raw Normal View History

2023-03-13 06:47:23 -07:00
import { parseVersion } from 'soapbox/utils/features';
import { useInstance } from './useInstance';
/**
* Get the Backend version.
*
* @returns Backend
*/
const useVersion = () => {
const instance = useInstance();
return parseVersion(instance.version);
};
export { useVersion };