mattermost-mobile/app/components/settings/separator.tsx
Daniel Espino García a27c82da90
Refactor and cleanup of option item (#9067)
* Refactor and cleanup of option item

* Fix tests and minor cleanup

* Fix bug and address feedback
2025-08-19 14:01:56 +02:00

25 lines
613 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {Platform} from 'react-native';
import MenuDivider from '@components/menu_divider';
type SettingSeparatorProps = {
isGroupSeparator?: boolean;
}
const SettingSeparator = ({isGroupSeparator = false}: SettingSeparatorProps) => {
if (Platform.OS === 'android') {
return null;
}
return (
<MenuDivider
marginBottom={isGroupSeparator ? 16 : 0}
marginTop={0}
/>
);
};
export default SettingSeparator;