forked from blakeblackshear/frigate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebUI: audio icons in MultiSelect component (blakeblackshear#7564)
* Add support for audio icons in MultiSelect component * update icon * speaker icon
- Loading branch information
1 parent
45f7db5
commit de6a916
Showing
3 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { h } from 'preact'; | ||
import { memo } from 'preact/compat'; | ||
|
||
|
||
export function Speaker({ | ||
className = 'h-7 w-7', | ||
stroke = 'currentColor', | ||
onClick = () => {}, | ||
}) { | ||
return ( | ||
<svg xmlns="https://www.w3.org/2000/svg" fill="none" viewBox="0 0 32 32" | ||
|
||
stroke={stroke} | ||
onClick={onClick} | ||
className={className}> | ||
<path stroke-linecap="round" stroke-linejoin="round" strokeWidth="2" d="M19.114 5.636a9 9 0 010 12.728M16.463 8.288a5.25 5.25 0 010 7.424M6.75 8.25l4.72-4.72a.75.75 0 011.28.53v15.88a.75.75 0 01-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.01 9.01 0 012.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75z"/> | ||
</svg> | ||
); | ||
} | ||
export default memo(Speaker); |