'use client'; import React, { useState } from 'react'; import { Button, Textarea } from '@nextui-org/react'; import { toast } from 'react-toastify'; import { HiOutlineBackspace, HiOutlineDuplicate } from 'react-icons/hi'; import { algorithms } from '@/app/strcoder/algorithms'; import { useTheme } from 'next-themes'; type ButtonColor = 'primary' | 'secondary' | 'success' | 'default' | 'warning' | 'danger' | undefined; const Page = () => { const [ input, setInput ] = useState(''); const [ output, setOutput ] = useState(''); const { theme } = useTheme(); return ( <>
Algorithms
{ category.toUpperCase() }