-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathmod.ts
30 lines (30 loc) · 964 Bytes
/
mod.ts
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
import manifest, { Manifest } from "./manifest.gen.ts";
import { PreviewContainer } from "../utils/preview.tsx";
import { type App, type AppContext as AC } from "@deco/deco";
// deno-lint-ignore ban-types
export type State = {};
/**
* @title Deco Weather
* @description Vary your content based on the current weather of your visitors.
* @category Tool
* @logo https://raw.githubusercontent.com/deco-cx/apps/main/weather/logo.png
*/
export default function App(state: State): App<Manifest, State> {
return { manifest, state };
}
export type AppContext = AC<ReturnType<typeof App>>;
export const preview = () => {
return {
Component: PreviewContainer,
props: {
name: "Deco Weather",
owner: "deco.cx",
description:
"Vary your content based on the current weather of your visitors.",
logo:
"https://raw.githubusercontent.com/deco-cx/apps/main/weather/logo.png",
images: [],
tabs: [],
},
};
};