{"size": 863, "ext": "js", "max_stars_repo_path": "src/features/homepage/hooks/useUtilities.js", "max_stars_repo_name": "KaloyanYosifov/Homesite", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/features/homepage/hooks/useUtilities.js", "max_issues_repo_name": "KaloyanYosifov/Homesite", "max_issues_repo_issues_event_min_datetime": "2022-02-10T22:33:37.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-10T22:33:37.000Z", "max_forks_repo_path": "src/features/homepage/hooks/useUtilities.js", "max_forks_repo_name": "KaloyanYosifov/Homesite", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 26.1515151515, "max_line_length": 109, "alphanum_fraction": 0.3673232908}
/**
 * External dependencies.
 */
import { graphql, useStaticQuery } from 'gatsby';

const useUtilities = () => {
    const { remarks: { utilities } } = useStaticQuery(graphql`
        query GetUtilities {
            remarks: allMarkdownRemark(filter: { frontmatter: { location: { eq: "homepage-utilities" } } }) {
                utilities: nodes {
                    id
                    frontmatter {
                        featuredImage {
                            publicURL,
                            childImageSharp {
                                fluid {
                                    src
                                }
                            }
                        }
                    }
                    html
                }
            }
        }

    `);

    return utilities || [];
};

export default useUtilities;
