|
defmodule MedicodeWeb.Storybook.CodeSelect do |
|
use PhoenixStorybook.Story, :live_component |
|
|
|
def component, do: MedicodeWeb.Components.CodeSelect |
|
|
|
def variations do |
|
text = |
|
"This 55-year-old man with known coronary artery disease comes for a follow-up visit today." |
|
|
|
[ |
|
%Variation{ |
|
id: :default, |
|
attributes: %{ |
|
id: "transcription-row-1-code-select", |
|
text: text, |
|
current_user: %Medicode.Accounts.User{ |
|
email: "doctor@headway.io" |
|
}, |
|
chunk: %Medicode.Transcriptions.TranscriptionChunk{ |
|
transcription_id: 1, |
|
text: text, |
|
start_mark: "00:00", |
|
end_mark: "00:07" |
|
} |
|
} |
|
} |
|
] |
|
end |
|
end |
|
|