17 lines
299 B
TypeScript
17 lines
299 B
TypeScript
import React from 'react'
|
|
|
|
interface Route {
|
|
path: string
|
|
name?: string
|
|
redirect?: string
|
|
exact?: boolean
|
|
navbar?: boolean
|
|
isIndex?: boolean
|
|
icon?: React.ComponentType
|
|
childRoutes?: Route[]
|
|
component?: React.ComponentType
|
|
getUrl?: (params: any) => string
|
|
}
|
|
|
|
export default Route
|