19 lines
378 B
TypeScript
19 lines
378 B
TypeScript
import gql from 'graphql-tag';
|
|
|
|
type DestroyPageLayoutOperationFactoryParams = {
|
|
pageLayoutId: string;
|
|
};
|
|
|
|
export const destroyPageLayoutOperationFactory = ({
|
|
pageLayoutId,
|
|
}: DestroyPageLayoutOperationFactoryParams) => ({
|
|
query: gql`
|
|
mutation DestroyPageLayout($id: String!) {
|
|
destroyPageLayout(id: $id)
|
|
}
|
|
`,
|
|
variables: {
|
|
id: pageLayoutId,
|
|
},
|
|
});
|