import SwiftUI
// MARK: - Semantic Colors in SwiftUI
struct AdaptiveColorsView: View {
var body: some View {
VStack(spacing: 20) {
import React, { createContext, useContext, useEffect, useState, ReactNode } from 'react'
type Theme = 'light' | 'dark'
interface ThemeContextType {
theme: Theme
import { useEffect, useState } from 'react';
export function useLocalStorage<T>(
key: string,
initialValue: T
): [T, (value: T) => void] {