- pgSchema "mesh" with 4 tables isolating the peer mesh domain - Enums: visibility, transport, tier, role - audit_log is metadata-only (E2E encryption enforced at broker/client) - Cascade on mesh delete, soft-delete via archivedAt/revokedAt Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
38 lines
820 B
TypeScript
38 lines
820 B
TypeScript
import * as LabelPrimitive from "@rn-primitives/label";
|
|
|
|
import { cn } from "@turbostarter/ui";
|
|
|
|
function Label({
|
|
className,
|
|
onPress,
|
|
onLongPress,
|
|
onPressIn,
|
|
onPressOut,
|
|
disabled,
|
|
...props
|
|
}: LabelPrimitive.TextProps & React.RefAttributes<LabelPrimitive.TextRef>) {
|
|
return (
|
|
<LabelPrimitive.Root
|
|
className={cn(
|
|
"flex flex-row items-center gap-2 select-none",
|
|
disabled && "opacity-50",
|
|
)}
|
|
onPress={onPress}
|
|
onLongPress={onLongPress}
|
|
onPressIn={onPressIn}
|
|
onPressOut={onPressOut}
|
|
disabled={disabled}
|
|
>
|
|
<LabelPrimitive.Text
|
|
className={cn(
|
|
"text-foreground native:leading-tight font-sans-medium text-sm",
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
</LabelPrimitive.Root>
|
|
);
|
|
}
|
|
|
|
export { Label };
|