MCPcopy Create free account
hub / github.com/ShipSecAI/studio / sortSecrets

Function sortSecrets

frontend/src/store/secretStore.ts:29–31  ·  view source on GitHub ↗
(secrets: SecretSummary[])

Source from the content-addressed store, hash-verified

27export type SecretStore = SecretStoreState & SecretStoreActions;
28
29function sortSecrets(secrets: SecretSummary[]) {
30 return [...secrets].sort((a, b) => a.name.localeCompare(b.name));
31}
32
33export const useSecretStore = create<SecretStore>((set, get) => ({
34 secrets: [],

Callers 1

secretStore.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected