import React from 'react'; import { themes } from '../../lib/constants'; import ServerItemComponent, { IServerItem } from '.'; import { ThemeContext, TSupportedThemes } from '../../theme'; export default { title: 'ServerItem' }; const defaultItem = { name: 'Rocket.Chat', id: 'https://open.rocket.chat/', iconURL: 'https://open.rocket.chat/images/logo/android-chrome-512x512.png' }; const ServerItem = ({ item, theme = 'light', onPress = () => alert('Press'), onLongPress, hasCheck }: { item?: Partial; theme?: TSupportedThemes; onPress?: IServerItem['onPress']; onLongPress?: IServerItem['onLongPress']; hasCheck?: IServerItem['hasCheck']; }) => ( ); export const Content = () => ( <> ); export const Touchable = () => ( <> alert('Long Press')} /> ); export const Themes = () => ( <> );