質問の意味からわからん
https://teratail.com/questions/imr66zdgoe4em6
まずこれを解決してからややこしいこと考えたら?