(props: DetailsPanelProps)
| 779 | } |
| 780 | |
| 781 | export function DetailsPanel(props: DetailsPanelProps) { |
| 782 | const styles = useStyles() |
| 783 | const state = useHotkeysDevtoolsState() |
| 784 | |
| 785 | return ( |
| 786 | <div class={styles().stateDetails}> |
| 787 | <Show |
| 788 | when={props.selectedRegistration()} |
| 789 | fallback={ |
| 790 | <div class={styles().noSelection}> |
| 791 | Select a hotkey or sequence from the list to view its details |
| 792 | </div> |
| 793 | } |
| 794 | > |
| 795 | {(reg) => ( |
| 796 | <Show |
| 797 | when={isSequenceRegistration(reg())} |
| 798 | fallback={ |
| 799 | <HotkeyDetails |
| 800 | registration={reg() as HotkeyRegistration} |
| 801 | state={state} |
| 802 | getTargetDescription={getTargetDescription} |
| 803 | findTargetConflicts={findTargetConflicts} |
| 804 | findScopeConflicts={findScopeConflicts} |
| 805 | getConflictItemStyle={getConflictItemStyle} |
| 806 | getConflictLabel={getConflictLabel} |
| 807 | formatForDisplay={formatForDisplay} |
| 808 | styles={styles} |
| 809 | /> |
| 810 | } |
| 811 | > |
| 812 | <SequenceDetails |
| 813 | registration={reg() as SequenceRegistrationView} |
| 814 | state={state} |
| 815 | getTargetDescription={getTargetDescription} |
| 816 | findSequenceTargetConflicts={findSequenceTargetConflicts} |
| 817 | findSequenceScopeConflicts={findSequenceScopeConflicts} |
| 818 | getConflictItemStyle={getConflictItemStyle} |
| 819 | getConflictLabel={getConflictLabel} |
| 820 | formatHotkeySequence={formatHotkeySequence} |
| 821 | formatForDisplay={formatForDisplay} |
| 822 | styles={styles} |
| 823 | /> |
| 824 | </Show> |
| 825 | )} |
| 826 | </Show> |
| 827 | </div> |
| 828 | ) |
| 829 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…