Settings tweaks

This commit is contained in:
Gavin McDonald
2025-07-03 14:31:32 -04:00
parent ed6fef5ef1
commit 97b6b66bad
5 changed files with 27 additions and 21 deletions

View File

@@ -3,11 +3,11 @@
import { useAppContext } from '@/app/AppContext';
import CopyButton from '@/components/CopyButton';
export default function Links() {
export default function Links({ className }: { className?: string }) {
const { gameData, isDM } = useAppContext();
return (
<>
<div className={`w-full flex flex-col justify-between gap-2 ${className}`}>
{isDM && (
<CopyButton
title="Copy DM link"
@@ -22,6 +22,6 @@ export default function Links() {
tooltip={`${location.origin}/${gameData.spectatorID}`}
className="flex flex-row content-between w-full py-1 px-2 transition-all duration-250 bg-slate-700 hover:bg-slate-600 hover:text-yellow-300 rounded-lg shadow"
/>
</>
</div>
);
}