import { useMenuStore } from "@/shared/lib"; import { Button, cn, type ButtonProps } from "@common/components"; import type { PageMenuAuthority } from "../model/menu-authority-interface"; type AuthorityButtonProps = { authority: keyof PageMenuAuthority; } & ButtonProps; function AuthorityButton({ authority, className, children, ...props }: AuthorityButtonProps) { const pageMenuAuthority = useMenuStore((state) => state.pageMenuAuthority); const isAuthority = pageMenuAuthority?.[authority] === "Y"; return ( ); } export { AuthorityButton };