// @ts-nocheck import React from 'react'; import styled from 'styled-components'; import classNames from 'classnames'; import { CLASSES } from '@/constants/classes'; import { useSettings } from '@/hooks/query'; import PreferencesPageLoader from '../PreferencesPageLoader'; import { Card } from '@/components'; const PreferencesCreditNotesFormContext = React.createContext(); function PreferencesCreditNotesBoot({ ...props }) { // Fetches organization settings. const { isLoading: isSettingsLoading } = useSettings(); // Provider state. const provider = { isSettingsLoading, }; // Detarmines whether if any query is loading. const isLoading = isSettingsLoading; return (
{isLoading ? ( ) : ( )}
); } const PreferencesCreditNotesCard = styled(Card)` padding: 25px; .bp4-form-group { max-width: 600px; } `; const usePreferencesCreditNotesFormContext = () => React.useContext(PreferencesCreditNotesFormContext); export { PreferencesCreditNotesBoot, usePreferencesCreditNotesFormContext };