mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
13 lines
285 B
JavaScript
13 lines
285 B
JavaScript
import React from "react"
|
|
import config from "config"
|
|
|
|
export default (props) => {
|
|
if (!props.session) {
|
|
window.app.setLocation(config.app?.authPath ?? "/login")
|
|
return <div />
|
|
}
|
|
|
|
window.app.setLocation(config.app?.mainPath ?? "/home")
|
|
|
|
return <div />
|
|
} |