packages/react-hooks/src/useTeleport.ts
Function useTeleportImpl
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function useTeleportImpl (): Teleport {
const { api, apiUrl, isApiReady } = useApi();
const paraId = useCall<ParaId>(isApiReady && api.query.parachainInfo?.parachainId);
const [state, setState] = useState<Teleport>(() => ({ ...DEFAULT_STATE }));