163 | {
164 | view === 'profiles' && (
165 |
200 | )
201 | }
202 | {
203 | view === 'publications' && (
204 |
205 | {
206 | loadingPubs && (
207 |
210 |
211 |
212 | )
213 | }
214 | {
215 | publications?.map(publication => (
216 |
window.open(`https://share.lens.xyz/p/${publication.id}`, '_blank')}
220 | >
221 |
226 |
227 |
228 |
229 | {publication.by.handle.localName.slice(0, 2)}
230 |
231 |
232 |
{publication.by.handle.localName}.{publication.by.handle.namespace}
233 |
{publication.by.metadata?.displayName}
234 |
235 |
236 |
237 |
244 |
247 | {publication.metadata.content.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, '[LINK]($1)')}
248 |
249 |
250 |
251 |
252 |
253 | {publication.stats.comments}
254 |
255 |
256 |
257 | {publication.stats.mirrors}
258 |
259 |
260 |
261 | {publication.stats.upvotes}
262 |
263 |
264 |
265 | {publication.stats.collects}
266 |
267 |
268 |
269 |
270 | ))
271 | }
272 |
273 | )
274 | }
275 | {
276 | view === 'music' && (
277 |
278 | {
279 | loadingMusicPubs && (
280 |
283 |
284 |
285 | )
286 | }
287 | {
288 | musicPubs?.map(publication => (
289 |
window.open(`https://share.lens.xyz/p/${publication.id}`, '_blank')}
293 | >
294 |
295 |
296 |
297 |
298 | {publication.by.handle.fullHandle.slice(0, 2)}
299 |
300 |
301 |
{publication.by.handle.localName}.{publication.by.handle.namespace}
302 |
{publication.by.handle.fullName}
303 |
304 |
305 |
306 |
316 |
317 |
321 |
322 |
325 | {publication.metadata.content.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, '[LINK]($1)')}
326 |
327 |
328 |
329 |
330 |
331 | {publication.stats.comments}
332 |
333 |
334 |
335 | {publication.stats.mirrors}
336 |
337 |
338 |
339 | {publication.stats.upvotes}
340 |
341 |
342 |
343 | {publication.stats.collects}
344 |
345 |
346 |
347 |
348 | ))
349 | }
350 |
351 | )
352 | }
353 |