1import {
2 SwitchCard,
3 SwitchSettingsGroup,
4} from "@/components/wensity/switch";
5import { IconShieldLock, IconUsers, IconWorld } from "@tabler/icons-react";
6
7export function SwitchSettings() {
8 return (
9 <div className="space-y-6">
10 <SwitchSettingsGroup
11 title="General"
12 description="Defaults applied across this workspace."
13 >
14 <SwitchCard
15 leading={<IconWorld stroke={1.75} />}
16 label="Public workspace profile"
17 description="Allow anyone with the link to view your workspace overview."
18 defaultChecked
19 trailingOn="Public"
20 trailingOff="Private"
21 />
22 <SwitchCard
23 leading={<IconUsers stroke={1.75} />}
24 label="Member invitations"
25 description="Let admins invite teammates without owner approval."
26 defaultChecked
27 trailingOn="Enabled"
28 trailingOff="Disabled"
29 />
30 </SwitchSettingsGroup>
31
32 <SwitchSettingsGroup
33 title="Security"
34 description="Policies that affect every member."
35 >
36 <SwitchCard
37 leading={<IconShieldLock stroke={1.75} />}
38 label="Require two-factor auth"
39 description="Block sign-in until a verification code is confirmed."
40 defaultChecked
41 trailingOn="Required"
42 trailingOff="Optional"
43 />
44 </SwitchSettingsGroup>
45 </div>
46 );
47}