Files
Game_Calendar_FE/src/components/ui/buttons/link-button.tsx
Harun CAN 8b0e7b4e1a main
2026-01-30 02:57:09 +03:00

12 lines
428 B
TypeScript

'use client';
import type { HTMLChakraProps, RecipeProps } from '@chakra-ui/react';
import { createRecipeContext } from '@chakra-ui/react';
export interface LinkButtonProps extends HTMLChakraProps<'a', RecipeProps<'button'>> {}
const { withContext } = createRecipeContext({ key: 'button' });
// Replace "a" with your framework's link component
export const LinkButton = withContext<HTMLAnchorElement, LinkButtonProps>('a');