mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
19 lines
582 B
TypeScript
19 lines
582 B
TypeScript
import { useRouter } from 'next/router'
|
|
import { TermsAndConditions } from '../components/templates/TermsAndConditions'
|
|
import { SettingsLayout } from '../components/templates/SettingsLayout'
|
|
|
|
export default function Terms(): JSX.Element {
|
|
const router = useRouter()
|
|
const appEmbedViewQuery = router.query.isAppEmbedView as string | undefined
|
|
const isAppEmbedView = (appEmbedViewQuery ?? '').length > 0
|
|
|
|
if (isAppEmbedView) {
|
|
return <TermsAndConditions />
|
|
} else {
|
|
return (
|
|
<SettingsLayout>
|
|
<TermsAndConditions />
|
|
</SettingsLayout>
|
|
)
|
|
}
|
|
}
|