import React, { useGlobal } from "reactn";
import { View, Text } from "react-native";
import useLayoutType from "../hooks/useLayoutType";
import Button from "./Button";
import { Style, Fonts } from "../styles";
import { responsiveScreenHeight } from "react-native-responsive-dimensions";
const EmptyFlashListPlaceholder = ({
loading = false,
text = "-",
buttonData = {},
}) => {
const [, setShowSearch] = useGlobal("showSearch");
const { isMobile } = useLayoutType;
if (loading) {
return (
Chargement en cours...
);
}
return (
{text}
{buttonData?.text?.length > 0 && (
);
};
export default EmptyFlashListPlaceholder;