Files
automatisch/packages/web/src/hooks/useAutomatischInfo.ts
2023-03-06 18:04:47 +00:00

15 lines
370 B
TypeScript

import * as React from 'react';
import { AutomatischInfoContext } from 'contexts/AutomatischInfo';
type UseAutomatischInfoReturn = {
isCloud: boolean;
};
export default function useAutomatischInfo(): UseAutomatischInfoReturn {
const automatischInfoContext = React.useContext(AutomatischInfoContext);
return {
isCloud: automatischInfoContext.isCloud,
};
}