This commit is contained in:
2025-08-23 18:40:03 +09:00
parent e79688783e
commit 7e2d94fdc0
15 changed files with 80 additions and 57 deletions
+6 -4
View File
@@ -6,13 +6,15 @@ import TextArea from '@/components/common/TextArea'
import { Button } from '@/components/ui/button'
import { API_BASE_URL } from '@/config'
import type { FC } from 'react'
import type { Post } from '@/types'
type Props = { post: Post
onSave: (newPost: Post) => void }
type Props = { post: Post
onSave: (newPost: Post) => void }
export default ({ post, onSave }: Props) => {
export default (({ post, onSave }: Props) => {
const [title, setTitle] = useState (post.title)
const [tags, setTags] = useState<string> (post.tags
.filter (t => t.category !== 'nico')
@@ -55,4 +57,4 @@ export default ({ post, onSave }: Props) => {
</Button>
</div>)
}
}) satisfies FC<Props>