mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-11 20:00:23 +01:00
* tasks * task input * fixed jazz things * create new task ui * feat: simple feature flag --------- Co-authored-by: marshennikovaolga <marshennikova@gmail.com> Co-authored-by: Aslam H <iupin5212@gmail.com>
16 lines
446 B
TypeScript
16 lines
446 B
TypeScript
import { TaskRoute } from "@/components/routes/task/TaskRoute"
|
|
import { currentUser } from "@clerk/nextjs/server"
|
|
import { notFound } from "next/navigation"
|
|
import { get } from "ronin"
|
|
|
|
export default async function TaskPage() {
|
|
const user = await currentUser()
|
|
const flag = await get.featureFlag.with.name("TASK")
|
|
|
|
if (!user?.emailAddresses.some(email => flag?.emails.includes(email.emailAddress))) {
|
|
notFound()
|
|
}
|
|
|
|
return <TaskRoute />
|
|
}
|