Here is the full code snippet, Clara:
import React, { useState } from 'react';
import { ContainerFluid } from 'strapi-helper-plugin';
import { gql } from 'apollo-boost';
import { useQuery, useMutation } from '@apollo/react-hooks';
import { StoreVariantDetails } from './StoreVariantDetails';
// Other imports...
const STORES_GQL = gql`
{
stores {
id
name
}
}
`;
const CREATE_STORE_GQL = gql`
mutation createStore($input: createStoreInput!) {
createStore(input: $input) {
store {
id
name
}
}
}
`;
// Modal style and other setup...
const StoreList = () => {
// Logic for fetching data, managing state, showing modal, etc.
};
export default StoreList;
// Function to initialize form with options...