@pagamio/frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
8 lines (7 loc) • 440 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
const FilterWrapper = ({ isNarrow, children }) => {
return (_jsx("div", { className: "bg-gray-50 shadow-xl rounded-lg p-4 mb-2", children: _jsx("div", { className: isNarrow
? 'flex flex-col w-full space-y-4'
: 'flex flex-row justify-between items-start w-full space-y-0 space-x-0 sm:space-x-4', children: children }) }));
};
export default FilterWrapper;