chore: refactor frontend components folder

This commit is contained in:
swve 2024-11-25 23:26:33 +01:00
parent 46f016f661
commit 5a746a946d
106 changed files with 159 additions and 164 deletions

View file

@ -0,0 +1,14 @@
'use client';
import React from 'react'
import useAdminStatus from '../Hooks/useAdminStatus'
// Terrible name and terible implementation, need to be refactored asap
function ContentPlaceHolderIfUserIsNotAdmin({ text }: { text: string }) {
const isUserAdmin = useAdminStatus() as any
return (
<span>{isUserAdmin ? text : 'No content yet'}</span>
)
}
export default ContentPlaceHolderIfUserIsNotAdmin