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