import React from "react"; import { COLORS } from "styles/var/colors"; export const renderEmptySearch = ( type: "exclamation" | "question" | "check" ) => { const renderIconPath = () => { switch (type) { case "exclamation": return ( ); case "question": return ( ); case "check": return ( ); default: return null; } }; return ( {renderIconPath()} ); }; const EmptySearchQuestion = () => renderEmptySearch("question"); export default EmptySearchQuestion;