import React from "react"; import { Button, Box } from "grommet"; import gql from "graphql-tag"; import { useMutation } from "@apollo/react-hooks"; const SEND = gql` mutation sendSwitch($input: SwitchInput!) { sendSwitch(input: $input) } `; const SwitchVector = ({ vector }) => { const [sendSwitch] = useMutation(SEND); return ( {vector.values.map((v) => ( ))} ); }; export default SwitchVector;