diff --git a/src/components/Panel/Items.tsx b/src/components/Panel/Items.tsx
index 7984c7b..5a2f9c1 100644
--- a/src/components/Panel/Items.tsx
+++ b/src/components/Panel/Items.tsx
@@ -1,6 +1,7 @@
import React, { useState } from 'react'
import styled from '@emotion/styled'
import PlayButton from './PlayButton'
+import usePlayText from '../../hooks/usePlayText'
export default function Items() {
return
@@ -27,7 +28,12 @@ function Item() {
onKeyDown={handleKeyDown}
onChange={handleChange}
/>
-
+ {
+ play(value)}
+ />
+ }
)
}
diff --git a/src/components/Panel/PlayButton.tsx b/src/components/Panel/PlayButton.tsx
index 0b9ffca..0dddf8b 100644
--- a/src/components/Panel/PlayButton.tsx
+++ b/src/components/Panel/PlayButton.tsx
@@ -2,8 +2,14 @@ import styled from '@emotion/styled'
import { useState } from 'react'
import { buttonStyle } from './styles'
import { ReactComponent as PlayIcon } from '../../res/play.svg'
+import { ReactComponent as StopIcon } from '../../res/stop.svg'
-export default function PlayButton() {
+interface IPlayButtonProps {
+ isPlaying: boolean
+ onClick: () => void
+}
+
+export default function PlayButton({ isPlaying, onClick }: IPlayButtonProps) {
const [isHovered, setIsHovered] = useState(false)
const handleMouseEnter = () => {
setIsHovered(true)
@@ -13,13 +19,20 @@ export default function PlayButton() {
}
return (
-