medicode / storybook /components /result_heading.story.exs
noahsettersten's picture
docs: `result_heading` doc, attributes, and story
7fc32c8
raw
history blame
1 kB
defmodule MedicalTranscriptionWeb.Storybook.ResultHeading do
use PhoenixStorybook.Story, :component
def function, do: &MedicalTranscriptionWeb.Components.result_heading/1
def variations do
[
%Variation{
id: :loading,
attributes: %{
status: :loading,
filename: "uploaded_audio.mp3"
}
},
%Variation{
id: :streaming_audio,
attributes: %{
status: :streaming_audio,
summary_keywords: [
%{score: 1.0, label: "heart"},
%{score: 0.9, label: "patient"},
%{score: 0.88, label: "diagnosis"}
]
}
},
%Variation{
id: :success,
attributes: %{
status: :success,
filename: "uploaded_audio.mp3",
summary_keywords: [
%{score: 1.0, label: "heart"},
%{score: 0.9, label: "patient"},
%{score: 0.88, label: "diagnosis"}
]
}
}
]
end
end