feat: add new menu

This commit is contained in:
Aarnav Tale 2025-01-28 16:04:42 -05:00
parent 28e40eecbf
commit a19eb6bcda
No known key found for this signature in database
13 changed files with 428 additions and 399 deletions

View file

@ -1,7 +1,7 @@
import { useState, HTMLProps } from 'react';
import { CopyIcon, CheckIcon } from '@primer/octicons-react';
import { CheckIcon, CopyIcon } from '@primer/octicons-react';
import { HTMLProps, useState } from 'react';
import { cn } from '~/utils/cn';
import { toast } from '~/components/Toaster';
import toast from '~/utils/toast';
interface Props extends HTMLProps<HTMLSpanElement> {
isCopyable?: boolean;
@ -22,6 +22,7 @@ export default function Code(props: Props) {
</code>
{props.isCopyable ? (
<button
type="button"
className={cn(
'ml-1 p-1 rounded-md',
'bg-ui-100 dark:bg-ui-800',