I understand the pain has been present since a day.
If there was no injury, we need to consider either raised
uric acid or other inflammation as the causative factor.
You need to consult an Orthopaedic surgeon, who will prescribe anti-inflammatory medications and get some blood tests done.
In the meanwhile, she can apply ice over the toe and drink plenty of water.