"use client"; import type { Metadata } from "next"; import "./globals.css"; import { action, createStore, StoreProvider } from "easy-peasy"; import { Inter } from "next/font/google"; import { StoreModel } from "@appTypes/StoreModel"; import Navbar from "@components/Navbar"; const inter = Inter({ subsets: ["latin"], variable: "--font-inter", }); const store = createStore({ currency: { selectedCurrency: "GBP", setSelectedCurrency: action((state, payload) => { state.selectedCurrency = payload; }), currencies: ["GBP", "USD", "EUR"], conversionRates: { GBP: 1, USD: 1.33, EUR: 1.17 }, tickers: { GBP: "£", USD: "$", EUR: "€" }, }, }); export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return (
{children}
); }