Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
seadfeng committed Aug 23, 2024
1 parent 3f5fc82 commit 17aea33
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/components/frontend/page/style/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,25 @@

import { Markdown } from "@/components/shared/markdown";
import { Textarea } from "@/components/ui/textarea";
import { usePathname } from "@/lib/i18n";
import { cn } from "@/lib/utils";
import { styleFonts, StyleKey } from "@/slugs";
import { fontKeys } from "@/transforms";
import { useSearchParams } from "next/navigation";
import { useState } from "react";
import { Fonts } from "./fonts";
import { Sidebar } from "./sidebar";

export function StyleMain({
markdownContents,
style = "all",
text = "Hello my old friend",
text,
}: Readonly<{
markdownContents: Record<string, string | undefined>;
style: StyleKey;
text?: string | null;
}>) {
const { block1, block2 } = markdownContents;
const [content, setContent] = useState<string>(text ? text : "");
const pathname = usePathname();
const search = useSearchParams().toString();

console.log("text", text)
console.log("search", search)

const [content, setContent] = useState<string>(text ? text : "Hello my old friend");

const onChange=(e: React.ChangeEvent<HTMLTextAreaElement>)=>{
setContent(e.target.value);
}
Expand Down

0 comments on commit 17aea33

Please sign in to comment.