Dejvino's Curriculum Vitae
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
344 B

  1. 'use client'
  2. import React from 'react';
  3. import { createContext } from 'react';
  4. import { Person } from '../../Person';
  5. export const PersonContext = createContext(Person);
  6. export function PersonProvider({ children }) {
  7. return (
  8. <PersonContext.Provider value={Person}>
  9. {children}
  10. </PersonContext.Provider>
  11. )
  12. }