This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gql from 'graphql-tag' | |
import { client } from '../utils/apollo-client' | |
const { parse } = wp.blocks; | |
const { select, subscribe, dispatch } = wp.data; | |
const GET_PAGE_BLOCK_TEMPLATE = gql` | |
query GET_PAGE_BLOCK_TEMPLATE($id: ID!, $template: String) { | |
page( id: $id ) { | |
blockTemplate( pageTemplate: $template ) | |
} | |
} |