Hi all. I am
Front-end Developer
Darius
Daniel
Front-end Developer
// Find my profile on Github:
const githubLink = https://github.com//darius-daniel/ const copyToClipboard = () => {
navigator.clipboard
.writeText(text)
.then(() => {
setComponent(tick);
setTimeout(() => {
setComponent(copy);
}, 2000);
})
.catch((error: Error) => console.error(error.message));
};export async function getLinks(userId: string, currentPage: number) {
const maxLinksPerPage = 10;
return await prisma.link.findMany({
where: { creator_id: userId },
skip: (currentPage - 1) * maxLinksPerPage,
take: maxLinksPerPage,
orderBy: { created_at: 'desc' },
});
}