import type { Meta, StoryObj } from '@storybook/nextjs' import { useState } from 'react' import EmojiPickerInner from './Inner' const meta = { title: 'Base/Data Entry/EmojiPickerInner', component: EmojiPickerInner, parameters: { layout: 'fullscreen', docs: { description: { component: 'Core emoji grid with search and style swatches. Use this when embedding the selector inline without a modal frame.', }, }, }, tags: ['autodocs'], } satisfies Meta export default meta type Story = StoryObj const InnerDemo = () => { const [selection, setSelection] = useState<{ emoji: string; background: string } | null>(null) return (
setSelection({ emoji, background })} className="flex-1 overflow-hidden rounded-xl border border-divider-subtle bg-white" />
Latest selection
          {selection ? JSON.stringify(selection, null, 2) : 'Tap an emoji to set background options.'}
        
) } export const Playground: Story = { render: () => , parameters: { docs: { source: { language: 'tsx', code: ` const [selection, setSelection] = useState<{ emoji: string; background: string } | null>(null) return ( setSelection({ emoji, background })} /> ) `.trim(), }, }, }, }