job-autofill
Preparing search index...
apps/popup-ui/src/hooks/useProfiles
useProfiles
Function useProfiles
useProfiles
()
:
{
addRule
:
()
=>
void
;
cancelAction
:
()
=>
void
;
completeOnboarding
:
()
=>
void
;
confirmAction
:
()
=>
void
;
confirmConfig
:
|
{
description
:
string
;
onConfirm
:
()
=>
void
;
title
:
string
}
|
null
;
createProfile
:
()
=>
void
;
createProfileFrom
:
(
baseProfile
:
Profile
)
=>
void
;
deleteProfile
:
(
id
:
string
)
=>
void
;
deleteRule
:
(
id
:
string
)
=>
void
;
editingProfile
:
Profile
|
null
;
getStoredProfileSize
:
(
profile
:
Profile
)
=>
number
;
hasSeenOnboarding
:
boolean
;
profiles
:
Record
<
string
,
Profile
>
;
reorderRule
:
(
id
:
string
,
direction
:
"up"
|
"down"
)
=>
void
;
saveEditingProfile
:
()
=>
void
;
selectedProfileId
:
string
|
null
;
setEditingProfile
:
Dispatch
<
SetStateAction
<
Profile
|
null
>
>
;
storageUsage
:
{
maxPerItem
:
number
;
total
:
number
;
used
:
number
}
;
updateEditingProfile
:
(
updates
:
Partial
<
Profile
>
)
=>
void
;
updateRule
:
(
id
:
string
,
field
:
keyof
Rule
,
value
:
any
)
=>
void
;
}
Returns
{
addRule
:
()
=>
void
;
cancelAction
:
()
=>
void
;
completeOnboarding
:
()
=>
void
;
confirmAction
:
()
=>
void
;
confirmConfig
:
|
{
description
:
string
;
onConfirm
:
()
=>
void
;
title
:
string
}
|
null
;
createProfile
:
()
=>
void
;
createProfileFrom
:
(
baseProfile
:
Profile
)
=>
void
;
deleteProfile
:
(
id
:
string
)
=>
void
;
deleteRule
:
(
id
:
string
)
=>
void
;
editingProfile
:
Profile
|
null
;
getStoredProfileSize
:
(
profile
:
Profile
)
=>
number
;
hasSeenOnboarding
:
boolean
;
profiles
:
Record
<
string
,
Profile
>
;
reorderRule
:
(
id
:
string
,
direction
:
"up"
|
"down"
)
=>
void
;
saveEditingProfile
:
()
=>
void
;
selectedProfileId
:
string
|
null
;
setEditingProfile
:
Dispatch
<
SetStateAction
<
Profile
|
null
>
>
;
storageUsage
:
{
maxPerItem
:
number
;
total
:
number
;
used
:
number
}
;
updateEditingProfile
:
(
updates
:
Partial
<
Profile
>
)
=>
void
;
updateRule
:
(
id
:
string
,
field
:
keyof
Rule
,
value
:
any
)
=>
void
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
job-autofill
Loading...