import React from "react"; export const AltPriorityShifterContext = React.createContext({ amount: 0, disable: false, }); interface IAltPriorityShifterProps { amount?: number; disable?: boolean; children: React.ReactNode; } export default class AltPriorityShifter extends React.PureComponent { constructor(props: IAltPriorityShifterProps) { super(props); } render() { return ( {(v) => ( {this.props.children} )} ) } }