mirror of
https://github.com/langgenius/dify.git
synced 2026-08-29 19:54:46 +08:00
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
14 lines
396 B
TypeScript
14 lines
396 B
TypeScript
'use client'
|
|
import type { FC, PropsWithChildren } from 'react'
|
|
import * as React from 'react'
|
|
import { useIsLogin } from '@/service/use-common'
|
|
|
|
const Splash: FC<PropsWithChildren> = () => {
|
|
// would auto redirect to signin page if not logged in
|
|
const { isLoading, data: loginData } = useIsLogin()
|
|
const isLoggedIn = loginData?.logged_in
|
|
|
|
return null
|
|
}
|
|
export default React.memo(Splash)
|