A South Carolina elementary school teacher resigned from her position on Wednesday after a student pulled two packs of marijuana edibles from an in-class reward box that resembled candy.

Victoria Farish Weiss, a 27-year-old teacher at Rocky Creek Elementary School in Lexington, turned herself into authorities on Friday.

A warrant for her arrest was issued charging her with possession of a schedule 1 drug, according to the Lexington County Sheriff's Department.

According to WIS-TV, Weiss had bought a bag of mixed candy to give to her students, and on Sept. 23, two students were selected to grab a prize from the box, where one student discovered the edibles.

"We became involved in this case Sept. 23 after receiving word a Rocky Creek Elementary School student picked a pack of marijuana edibles out of a box full of candy Weiss used to reward students," Lexington County Sheriff Jay Koon said.

"Detectives confirmed during interviews that Weiss took the pack of edibles from the student and told him to pick something else from the box. The student went back to the box and happened to grab another pack of edibles. No student ate any of the products," Koon continued.

According to WIS-TV, the student took the second pack of edibles to an after-school daycare program, where he asked a staff member to help him open the pack. The staff member noticed that the package was not in fact Sour Patch Kids, and contacted the child's school. They did not open the package of edibles.

During the execution of a search warrant at Weiss' house the following day, investigators reportedly discovered packs of marijuana edibles that were similar to those founding the class reward box.

"Marijuana edibles are cannabis-based food products. They come in many forms, but the items in this case were candy," Koon said. "They're often packaged in wrappers and bags with logos and colors that look similar to traditional candy brands. While they are available in other states and online, they're illegal in South Carolina."

Weiss was reportedly "hysterical" when she was approached by her assistant principal, according to an incident report obtained by WIS-TV.

Weiss was placed on administrative leave following the incident, and according to The State, she resigned from her position on Wednesday.

"The safety of our students is our top priority," Superintendent Greg Little said in a press statement. "It is unacceptable for a staff member to potentially threaten the wellbeing of a child. We will continue to work to ensure all of our children have a safe environment to learn and grow."