"use client";
import { usePermission } from "@/lib/usePermission";

export function QuickActions() {
  const { can } = usePermission();
  const canWrite = can("POST", "CREATE");
  const isAdmin = can("ADMIN", "ADMINISTER") || can("BOARD", "MODERATE");
  return (
    <div style={{ display: "flex", gap: 8 }}>
      {canWrite && <button>글쓰기</button>}
      {isAdmin && <button>관리자</button>}
    </div>
  );
}


