import { TRPCSettingsProvider } from "@karakeep/shared-react/providers/trpc-provider";

import usePluginSettings from "./settings";
import { ThemeProvider } from "./ThemeProvider";

export function Providers({ children }: { children: React.ReactNode }) {
  const { settings } = usePluginSettings();

  return (
    <TRPCSettingsProvider settings={settings}>
      <ThemeProvider>{children}</ThemeProvider>
    </TRPCSettingsProvider>
  );
}
