- )
-}
+/**
+ * Country Component
+ * Displays a country's flag, name, population, region, and capital.
+ *
+ * Props:
+ * - country: { flag, name, population, region, capital }
+ */
+const Country = ({ country: { flag, name, population, region, capital } }) => {
+ return (
+ <>
+
+
+
+
+
{name}
+
+
Population: {population}
+
Region: {region}
+
Capital: {capital}
+
+
+ >
+ );
+};
-export default Country
\ No newline at end of file
+export default Country;
\ No newline at end of file
diff --git a/src/components/Header.jsx b/src/components/Header.jsx
new file mode 100644
index 0000000..8ee2ea3
--- /dev/null
+++ b/src/components/Header.jsx
@@ -0,0 +1,26 @@
+import 'react'
+import Logo from "./Logo.jsx";
+import ThemeToggle from "./ThemeToggle.jsx";
+
+
+/**
+ * Header Component
+ * Displays the header with a logo and a theme toggle button.
+ *
+ * Props:
+ * - theme: Current theme ("light" or "dark").
+ * - toggleTheme: Function to toggle between themes.
+ */
+const Header = ({theme, toggleTheme}) => {
+
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default Header
diff --git a/src/components/Logo.jsx b/src/components/Logo.jsx
new file mode 100644
index 0000000..785b39c
--- /dev/null
+++ b/src/components/Logo.jsx
@@ -0,0 +1,19 @@
+import 'react'
+
+/**
+ * Logo Component
+ * Displays the site logo as a clickable link.
+ *
+ * Functionality:
+ * - Redirects to "index.html" on click.
+ */
+const Logo = () => {
+
+ return (
+
+