import React from 'react';
import { Placeholder } from '@sendbird/uikit-react-native-foundation';
import { useLocalization } from '../hooks/useContext';
type Props = {
type:
| 'no-muted-members'
| 'no-muted-participants'
| 'no-banned-users'
| 'no-channels'
| 'no-messages'
| 'no-users'
| 'no-results-found'
| 'error-wrong'
| 'loading';
onPressRetry?: () => void;
};
const TypedPlaceholder = ({ type, onPressRetry }: Props) => {
const { STRINGS } = useLocalization();
switch (type) {
case 'no-banned-users':
return ;
case 'no-channels':
return ;
case 'no-messages':
return ;
case 'no-muted-members':
return ;
case 'no-muted-participants':
return ;
case 'no-results-found':
return ;
case 'no-users':
return ;
case 'error-wrong':
return (
);
case 'loading':
return ;
}
};
export default TypedPlaceholder;