- 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>
35 lines
939 B
TypeScript
35 lines
939 B
TypeScript
import * as RadioGroupPrimitive from "@rn-primitives/radio-group";
|
|
|
|
import { cn } from "@turbostarter/ui";
|
|
|
|
function RadioGroup({
|
|
className,
|
|
...props
|
|
}: RadioGroupPrimitive.RootProps &
|
|
React.RefAttributes<RadioGroupPrimitive.RootRef>) {
|
|
return (
|
|
<RadioGroupPrimitive.Root className={cn("gap-3", className)} {...props} />
|
|
);
|
|
}
|
|
|
|
function RadioGroupItem({
|
|
className,
|
|
...props
|
|
}: RadioGroupPrimitive.ItemProps &
|
|
React.RefAttributes<RadioGroupPrimitive.ItemRef>) {
|
|
return (
|
|
<RadioGroupPrimitive.Item
|
|
className={cn(
|
|
"border-input dark:bg-input/30 aspect-square size-4 shrink-0 items-center justify-center rounded-full border shadow-sm shadow-black/5",
|
|
props.disabled && "opacity-50",
|
|
className,
|
|
)}
|
|
{...props}
|
|
>
|
|
<RadioGroupPrimitive.Indicator className="bg-primary size-2 rounded-full" />
|
|
</RadioGroupPrimitive.Item>
|
|
);
|
|
}
|
|
|
|
export { RadioGroup, RadioGroupItem };
|