mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-04 04:58:30 +01:00
feat(settings): add SettingsSection component
This commit is contained in:
19
components/settings/index/SettingsSection.tsx
Normal file
19
components/settings/index/SettingsSection.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import type React from "react";
|
||||
import { View } from "react-native";
|
||||
import { Text } from "@/components/common/Text";
|
||||
|
||||
export const SettingsSection: React.FC<{
|
||||
title?: string;
|
||||
children: React.ReactNode;
|
||||
}> = ({ title, children }) => (
|
||||
<View className='mb-5'>
|
||||
{title ? (
|
||||
<Text className='ml-4 mb-1.5 uppercase text-[#8E8D91] text-[11px] tracking-wide'>
|
||||
{title}
|
||||
</Text>
|
||||
) : null}
|
||||
<View className='mx-3 rounded-xl overflow-hidden bg-neutral-900'>
|
||||
{children}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
Reference in New Issue
Block a user