Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
21 lines
518 B
Plaintext
21 lines
518 B
Plaintext
import { notFound } from 'next/navigation.js';
|
|
import { renderListView } from '../List/index.js';
|
|
export const TrashView = async args => {
|
|
try {
|
|
const {
|
|
List: TrashList
|
|
} = await renderListView({
|
|
...args,
|
|
enableRowSelections: true,
|
|
trash: true,
|
|
viewType: 'trash'
|
|
});
|
|
return TrashList;
|
|
} catch (error) {
|
|
if (error.message === 'not-found') {
|
|
notFound();
|
|
}
|
|
console.error(error); // eslint-disable-line no-console
|
|
}
|
|
};
|
|
//# sourceMappingURL=index.js.map |