diff --git a/src/components/Config.tsx b/src/components/Config.tsx index a5775e7..a0aa8f5 100644 --- a/src/components/Config.tsx +++ b/src/components/Config.tsx @@ -4,6 +4,9 @@ import XMark from 'heroicons/24/outline/x-mark.svg'; import Modal from '@/components/Modal'; import useConfig, { type Config } from '@/core/useConfig'; +import useModalState from '@/hooks/useModalState'; +import usePubkey from '@/nostr/usePubkey'; +import ensureNonNull from '@/utils/ensureNonNull'; import UserNameDisplay from './UserDisplayName'; @@ -11,6 +14,35 @@ type ConfigProps = { onClose: () => void; }; +const ProfileSection = () => { + const pubkey = usePubkey(); + const { showProfile, showProfileEdit } = useModalState(); + + return ( +
+

プロフィール

+
+ + +
+
+ ); +}; + const RelayConfig = () => { const { config, addRelay, removeRelay } = useConfig(); @@ -267,6 +299,7 @@ const ConfigUI = (props: ConfigProps) => { +