)
}
function activitySourceIcon(s: ActivityEvent["source"]) {
if (s === "drive") return
if (s === "notion") return
if (s === "slack")
return
if (s === "answer") return
if (s === "decision")
return
return
}
export function ActivityFeedBlock() {
return (
{ACTIVITY.map((a, i) => (
{activitySourceIcon(a.source)}
{a.text}
{a.when}
))}
)
}
export function TeamActivityRail() {
return (
Team activity
This week
What your team's been adding to the brain.
{TEAM_THIS_WEEK.map((member) => (
{member.name[0]}
{member.name}
{member.summary}
{member.contributions}
))}
Recent
{TEAM_RECENT.map((event, i) => (
{event.who} {event.what}
· {event.when}
))}
)
}
export function BrainHomeBackground() {
return (
)
}
export function Quotation({ children }: { children: React.ReactNode }) {
return (
{children}
)
}
function connectedSourceIcon(key: ConnectedSource["iconKey"]) {
if (key === "drive") return
if (key === "notion") return
if (key === "gmail") return
if (key === "github") return
return
}
function sourceStatusMeta(status: ConnectedSource["status"]) {
if (status === "healthy")
return {
dot: "bg-[#4BA0FA]",
tint: "text-[#4BA0FA]",
icon: ,
}
if (status === "syncing")
return {
dot: "bg-[#A1A1AA]",
tint: "text-[#A1A1AA]",
icon: ,
}
if (status === "warning")
return {
dot: "bg-[#FF8A47]",
tint: "text-[#FF8A47]",
icon: ,
}
return {
dot: "bg-[#FF5C5C]",
tint: "text-[#FF5C5C]",
icon: ,
}
}
export function SourcesHealthRail({ empty }: { empty?: boolean }) {
if (empty) {
return (
Sources health
Nothing connected yet — Drive, Notion, Gmail and more are ready when
you are.