forked from raycast/ray-so
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.tsx
34 lines (31 loc) · 1.47 KB
/
layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { Providers } from "@themes/components/providers";
import { ThemeSwitcher } from "@themes/components/theme-switcher";
import { getAllThemes } from "@themes/lib/theme";
import { ThemeControls } from "@themes/components/theme-controls";
import { NavigationActions } from "@/components/navigation";
import { Button } from "@/components/button";
import { SpeechBubbleIcon, BrandGithubIcon } from "@raycast/icons";
import ExportButton from "@/app/(navigation)/(code)/components/ExportButton";
import KeyboardShortcuts from "./components/keyboard-shortcuts";
import { InfoDialog } from "./components/info-dialog";
export const metadata = {
title: "Theme Explorer by Raycast",
description: "A tool to easily share, browse and import Raycast Themes.",
};
export default async function Layout({ children, params }: { children: React.ReactNode; params: any }) {
const themes = await getAllThemes();
return (
<Providers themes={themes}>
<div className="flex flex-col h-[calc(100dvh-50px)] items-center 2xl:pt-3 themes-body">
<div className="flex flex-col flex-1 overflow-hidden shadow-[0px_0px_29px_10px_rgba(0,0,0,0.06)] dark:shadow-[0px_0px_29px_10px_rgba(255,255,255,.06)] max-w-screen-2xl w-full 2xl:rounded-xl">
{children}
</div>
<ThemeControls themes={themes} />
<ThemeSwitcher themes={themes} />
<NavigationActions className="hidden sm:flex">
<InfoDialog />
</NavigationActions>
</div>
</Providers>
);
}