import type { Meta, StoryFn } from '@storybook/react' import React from 'react' import { StoryGrid, StoryHeading, StoryPage, StoryRow, } from '../stories/StoryTable' import type { AudioItem } from '../types' import AudioAttachment from '.' const AUDIO_SRC = 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3' const STACK_AUDIO: AudioItem[] = [ { src: AUDIO_SRC, mimeType: 'audio/mpeg', filename: 'Take 1 — full mix.mp3', }, { src: AUDIO_SRC, mimeType: 'audio/mpeg', filename: 'Take 2 — vocals isolated.mp3', }, { src: AUDIO_SRC, mimeType: 'audio/mpeg', filename: 'Take 3 — instrumental only.mp3', }, ] const meta: Meta = { title: 'MessageAttachment/Audio', parameters: { layout: 'fullscreen' }, } export default meta const handleDismiss = () => { console.log('Dismissed audio attachment') } /** * Native `