(filterValue: FilterValues)
| 122 | }; |
| 123 | |
| 124 | const stringifyFilter = (filterValue: FilterValues): string => { |
| 125 | let result = ""; |
| 126 | |
| 127 | for (const key in filterValue) { |
| 128 | const value = filterValue[key]; |
| 129 | if (value) { |
| 130 | const needsQuotes = value.includes(" "); |
| 131 | result += needsQuotes ? `${key}:"${value}" ` : `${key}:${value} `; |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | return result.trim(); |
| 136 | }; |
| 137 | |
| 138 | const BaseSkeleton: FC<SkeletonProps> = ({ children, ...skeletonProps }) => { |
| 139 | return ( |