MCPcopy Create free account
hub / github.com/TanStack/hotkeys / DetailsPanel

Function DetailsPanel

packages/hotkeys-devtools/src/components/DetailsPanel.tsx:781–829  ·  view source on GitHub ↗
(props: DetailsPanelProps)

Source from the content-addressed store, hash-verified

779}
780
781export 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}

Callers

nothing calls this directly

Calls 4

useStylesFunction · 0.90
useHotkeysDevtoolsStateFunction · 0.90
regFunction · 0.85
isSequenceRegistrationFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…