mirror of
https://github.com/hanzoai/gui.git
synced 2026-10-25 02:31:41 +00:00
The loader and the Next plugin only existed to drive webpack; Next runs on Turbopack and Vite has its own plugin. kitchen-sink and the integration app serve through vite, the optimizer suite drops the webpack name, and its fixture packages join the workspace so a fresh checkout links @my/ui.
23 lines
607 B
TypeScript
23 lines
607 B
TypeScript
import { Button, Paragraph, YStack } from '@my/ui'
|
|
import { ChevronLeft } from '@hanzogui/lucide-icons-2'
|
|
import { useRouter } from 'solito/navigation'
|
|
|
|
export function UserDetailScreen({ id }: { id: string }) {
|
|
const router = useRouter()
|
|
if (!id) {
|
|
return null
|
|
}
|
|
return (
|
|
<YStack flex={1} justify="center" items="center" gap="$4" bg="$background">
|
|
<Paragraph
|
|
text="center"
|
|
fontWeight="700"
|
|
color="$blue10"
|
|
>{`User ID: ${id}`}</Paragraph>
|
|
<Button icon={ChevronLeft} onPress={() => router.back()}>
|
|
Go Home
|
|
</Button>
|
|
</YStack>
|
|
)
|
|
}
|