mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 09:13:14 +03:00
refactor: admin settings (#22109)
This commit is contained in:
16
web/src/lib/components/users/FeatureSetting.svelte
Normal file
16
web/src/lib/components/users/FeatureSetting.svelte
Normal file
@@ -0,0 +1,16 @@
|
||||
<script lang="ts">
|
||||
import { Icon, Text } from '@immich/ui';
|
||||
import { mdiCheck, mdiClose } from '@mdi/js';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
state: boolean;
|
||||
}
|
||||
|
||||
let { title, state }: Props = $props();
|
||||
</script>
|
||||
|
||||
<div class="flex justify-between items-center">
|
||||
<Text class="text-sm font-medium">{title}</Text>
|
||||
<Icon icon={state ? mdiCheck : mdiClose} class={state ? 'text-primary' : 'text-danger'} size="24" />
|
||||
</div>
|
||||
Reference in New Issue
Block a user