| Total Complexity | 1 |
| Complexity/F | 1 |
| Lines of Code | 17 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 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 |