diff options
Diffstat (limited to 'apps/mobile/components/ui')
| -rw-r--r-- | apps/mobile/components/ui/PageTitle.tsx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/mobile/components/ui/PageTitle.tsx b/apps/mobile/components/ui/PageTitle.tsx index 1c1543ce..dc712379 100644 --- a/apps/mobile/components/ui/PageTitle.tsx +++ b/apps/mobile/components/ui/PageTitle.tsx @@ -1,7 +1,16 @@ import { Text } from "react-native"; +import { cx } from "class-variance-authority"; -export default function PageTitle({ title }: { title: string }) { +export default function PageTitle({ + title, + className, +}: { + title: string; + className?: string; +}) { return ( - <Text className="p-4 text-4xl font-bold text-foreground">{title}</Text> + <Text className={cx("p-4 text-4xl font-bold text-foreground", className)}> + {title} + </Text> ); } |
