vchikalkin 5dfef524e2 refactor(contact): remove customer master role checks and simplify contact addition
- Updated the `addContact` function to allow all users to add contacts, removing the previous restriction that only masters could do so.
- Deleted the `become-master` feature and related utility functions, streamlining the codebase.
- Adjusted command settings to reflect the removal of the master role functionality.
- Refactored components and hooks to eliminate dependencies on the master role, enhancing user experience and simplifying logic.
2025-09-08 12:51:35 +03:00

19 lines
569 B
TypeScript

import Link from 'next/link';
type Props = {
readonly description?: string;
readonly href: string;
readonly text: string;
};
export function LinkButton({ description, href, text }: Props) {
return (
<Link href={href} rel="noopener noreferrer">
<div className="flex min-h-24 w-full flex-col rounded-2xl bg-background p-4 px-6 shadow-lg backdrop-blur-2xl dark:bg-primary/5">
<h2 className="font-bold text-foreground">{text}</h2>
<span className="mt-1 text-sm text-muted-foreground">{description}</span>
</div>
</Link>
);
}