import React, { useState } from 'react' import { Outlet } from 'react-router-dom' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faSun, faMoon } from '@fortawesome/free-solid-svg-icons' import { useTheme } from '../context/themeContext' import { Link } from 'react-router-dom' import logoLightMode from '../assets/logo-light-mode.png' import logoDarkMode from '../assets/logo-dark-mode.png' const Appbar = () => { const [checked, setChecked] = useState(false) const { theme, toggleTheme } = useTheme() const handleChange = () => { setChecked(!checked) toggleTheme() } return (