5180 fichiers 38.5 Mo 0 téléchargements 358 vues mis à jour il y a 7 heures ui
nitro-v36-with-renderer-v36 / src / components / wired / views / extras / WiredCustomContractView.tsx
WiredCustomContractView.tsx 816 o Télécharger le fichier
import { FC } from 'react';
import { isOfficialCustomContractParams } from '../../../../api/wired/WiredCustomContract';
import { useWired } from '../../../../hooks';
import { WiredCustomContractFreeFormView } from './WiredCustomContractFreeFormView';
import { WiredCustomContractOfficialView } from './WiredCustomContractOfficialView';

/**
 * The custom contract editor: AIR's official form, or our older free-form editor for a contract saved by it that the
 * official form cannot say (the server sends that one's rules, `[-1, ...]`, instead of the official ints).
 */
export const WiredCustomContractView: FC<{}> = () => {
    const { trigger = null } = useWired();

    return isOfficialCustomContractParams(trigger?.intData ?? []) ? <WiredCustomContractOfficialView /> : <WiredCustomContractFreeFormView />;
};
15Sujets
1Dépôts
20Membres
3En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser