Passed
Push — master ( 2ca0e9...997ccc )
by Vitor
02:35
created

src/providers/getSocialButtonsProvider.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 17
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
mnd 0
bc 0
fnc 1
dl 0
loc 17
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10
1
import { useStaticQuery, graphql } from 'gatsby';
2
3
export const getSocialButtonsProvider = () => {
4
    const { buttons } = useStaticQuery(graphql`
5
    {
6
        buttons: dataYaml(slug: {eq: "social-buttons"}) {
7
            items {
8
                key
9
                title
10
                href
11
                icon
12
            }
13
        }
14
    }`);
15
16
    return buttons;
17
};
18