| Total Complexity | 1 |
| Complexity/F | 1 |
| Lines of Code | 15 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { useStaticQuery, graphql } from 'gatsby'; |
||
| 2 | |||
| 3 | export const getContactInfoProvider = () => { |
||
| 4 | const { contactInfo } = useStaticQuery(graphql` |
||
| 5 | { |
||
| 6 | contactInfo: dataYaml(slug: {eq: "contact-info"}) { |
||
| 7 | items { |
||
| 8 | name |
||
| 9 | value |
||
| 10 | } |
||
| 11 | } |
||
| 12 | }`); |
||
| 13 | |||
| 14 | return contactInfo.items; |
||
| 15 | }; |
||
| 16 |