Miao-Yunzai/routes.tsx

42 lines
1022 B
TypeScript
Raw Normal View History

2024-06-11 22:10:46 +08:00
import React from "react"
import { type RouterType } from "yunzai/image/types"
import Hello from "./hello.tsx"
2024-06-15 11:18:45 +08:00
const movies = [
{
id: 0,
image: 'https://t14.baidu.com/it/u=2426410956,1575157783&fm=58&app=83&size=w931&q=75&n=0&f=JPEG&fmt=auto&maxorilen2heic=2000000',
title: 'Prognosis Negative',
starRating: '2.66',
rating: 'PG-13',
year: '2021',
genre: 'Comedy',
runtime: '1h 46m',
cast: 'Simon Pegg, Zach Galifianakis '
},
{
id: 0,
image: 'https://t14.baidu.com/it/u=2426410956,1575157783&fm=58&app=83&size=w931&q=75&n=0&f=JPEG&fmt=auto&maxorilen2heic=2000000',
title: 'Prognosis Negative',
starRating: '2.66',
rating: 'PG-13',
year: '2021',
genre: 'Comedy',
runtime: '1h 46m',
cast: 'Simon Pegg, Zach Galifianakis '
}
]
2024-06-11 22:10:46 +08:00
const Config: RouterType = [
2024-06-15 11:18:45 +08:00
{
url: "/",
element: <Hello data={{ name: "word" }} movies={movies} />
},
{
url: "/new",
element: <div>
hello Word !
</div>
2024-06-11 22:10:46 +08:00
}
]
export default Config