mattermost-mobile/app/screens/post_priority_picker/components/picker_option.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

24 lines
604 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import OptionItem, {type OptionItemProps, type OptionType} from '@components/option_item';
type Props = Omit<OptionItemProps, 'type'> & {
type?: OptionType;
}
const PickerOption = ({type, ...rest}: Props) => {
const testID = `post_priority_picker_item.${rest.value || 'standard'}`;
return (
<OptionItem
testID={testID}
type={type || 'select'}
{...rest}
/>
);
};
export default PickerOption;