@equinor/mad-core
Version:
Core library for the Mobile App Delivery team
20 lines (17 loc) • 646 B
JavaScript
import {
renderCell
} from "./chunk-3OKLIPZ5.js";
import {
useCoreStackNavigation
} from "./chunk-BIMOM43W.js";
// src/components/screens/settings/Section.tsx
import React from "react";
import { Cell, Spacer } from "@equinor/mad-components";
import { View } from "react-native";
var SettingsSection = ({ title, items }) => {
const navigation = useCoreStackNavigation();
return /* @__PURE__ */ React.createElement(View, null, /* @__PURE__ */ React.createElement(Cell.Group, { title }, items.map((item) => renderCell(item, navigation))), /* @__PURE__ */ React.createElement(Spacer, { amount: "small" }));
};
export {
SettingsSection
};